laravel get record and sortby asc code example Example: get all sort by laravel $results = Project::orderBy('name')->get();