I'm trying to get a Post inside a Session, but between Post and Session I have a Category Model. Each Session have many Categories that have many Posts (Posts can have same 'slug', therefore i need pass session_id on Eloquent query.) How can I do it?
If you mean getting all "posts" related to a "session", given the session id, than this may help you (similar situation):
http://laravel.io/forum/02-12-2014-chaining-hasmany-relationships
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community