Answers for "laravel with callback"

PHP
0

laravel with callback

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

}])->get();
Posted by: Guest on January-24-2021

Browse Popular Code Answers by Language