Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel with callback

$users = User::with(['posts' => function($query)
{
    $query->orderBy('created_at', 'desc');

}])->get();
 
PREVIOUS NEXT
Tagged: #laravel #callback
ADD COMMENT
Topic
Name
9+4 =