---
title: "Discussion on \"How to order by all() in Laravel\" | Hashnode"
description: "Discussion on \"How to order by all() in Laravel\". One common issue that I see with Laravel newcomers is that they have hangups using Eloquent correctly. The most basic reference given in the documentation and tutorials is using the all() method.\n$users = User::all();\n\nBut what happens when you want ..."
url: "https://hashnode.com/posts/how-to-order-by-all-in-laravel-1a308497de55/6525b37034cf07117bb1b257"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to order by all() in Laravel](https://cmgmyr.hashnode.dev/how-to-order-by-all-in-laravel-1a308497de55?utm_source=hashnode&utm_medium=feed)

One common issue that I see with Laravel newcomers is that they have hangups using Eloquent correctly. The most basic reference given in the documentation and tutorials is using the all() method. $users = User::all(); But what happens when you want ...

May 31, 2017 · 1 min read · cmgmyr.hashnode.dev  
Updated Nov 17, 2023  
Read the article

-   [#laravel](https://hashnode.com/tag/laravel)
-   [#eloquent](https://hashnode.com/tag/eloquent)

## Written by

[Chris Gmyr](https://hashnode.com/@cmgmyr)

@cmgmyr · Cary, NC

  
[View profile](https://hashnode.com/@cmgmyr)

Staff Engineer @ Rula & TrianglePHP Co-Organizer | Slightly Caffeinated Podcast Co-Host

Husband, dad, &amp; grilling aficionado. Loves Laravel &amp; coffee. Staff Engineer @ Rula, TrianglePHP Co-Organizer, and Slightly Caffeinated Podcast Co-Host

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
