R
R
Recew2015-05-29 09:20:10
ORM
Recew, 2015-05-29 09:20:10

Laravel. Communication between models?

Good day, friends.
I want to make tags for news on the blog. One piece of news can have many tags.
How to create links between them? Need to use a third table?
Eloquent experts, please help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
WebDev, 2015-05-29
@Recew

laravel.com/docs/4.2/eloquent#many-to-many

V
varz62, 2015-05-29
@varz62

you can look towards such solution
https://github.com/rtconner/laravel-tagging/tree/l...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question