get all data with order By condition in laravel code example Example: get all sort by laravel $results = Project::orderBy('name')->get();