laravel with callback

Solutions on MaxInterview for laravel with callback by the best coders in the world

showing results for - "laravel with callback"
Delfina
08 Aug 2016
1$users = User::with(['posts' => function($query)
2{
3    $query->orderBy('created_at', 'desc');
4
5}])->get();