Support the ongoing development of Laravel.io →
ammont

ammont

Joined 10 Feb 2014

Statistics

Threads 7
Replies 8
Solutions 1
Articles 0
posted 11 years ago

Get view data

Hi Guys, I need to get the view data i found the View::getData() method in the api but i can not cal...

0 Likes
3 Replies

Joined table IDs are returned in the Model Collection instead of the main table IDs

Hi Guys, I have a query which it's toSql result is: select * from `jobs` left join `locations` on `j...

0 Likes
8 Replies
replied 11 years ago
0 Likes
replied 11 years ago

Order by pivot table attribute in Eloquent

Ok I found a solution myself, It's as simple as this: Auth::user()->jobs() ->order...

0 Likes
Solved
replied 11 years ago

Order by pivot table attribute in Eloquent

jarektkaczyk said: Use join because eager loading runs 2nd query, so you'll end up with jobs ordere...

0 Likes
replied 11 years ago

Get view data

revati said: $view = View::make('view', $data); $viewData = $view->getData(); This should work....

0 Likes
replied 11 years ago

Joined table IDs are returned in the Model Collection instead of the main table IDs

thepsion5 said: Specify a table alias in your join, like so (using jazpur's example): $collection =...

0 Likes

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2026 Laravel.io - All rights reserved.