DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
laravel orderby with relation
$users = User::with(['student' => function ($q) { $q->orderBy('id', 'desc'); }]);
Source by laracasts.com #
PREVIOUS
NEXT
Tagged:
#laravel
#orderby
#relation
ADD COMMENT
Topic
COMMENT
Name
3+6 =
Submit