eloquent orderby not ordering alphabetically code example Example: laravel eloquent order by alphabetical order $items = Item::orderBy('name')->get();