Not sure what you're asking but check out this tutorial. It helped me a lot.
http://scotch.io/tutorials/php/a-guide-to-using-eloquent-orm-in-laravel
Your question is not clear....
@foreach (User::find(1)->snippets as $snippet)
{{ $snippet->category_id }}
@endforeach
i want to access additional models from a pivot
in this case i want Category model
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community