laravel order by desc eloquent code example
Example 1: order By Asc in laravbel
->orderBy('id', 'DESC');
Example 2: laravel get all records order by
$results = Project::orderBy('name')->get();
->orderBy('id', 'DESC');
$results = Project::orderBy('name')->get();