laravel get all records order by where code example Example: get all sort by laravel $results = Project::orderBy('name')->get();