Skip to content

Instantly share code, notes, and snippets.

@leben-jp
Created November 14, 2021 14:45
Show Gist options
  • Save leben-jp/9ba73d745facc361770db3ac79dfa012 to your computer and use it in GitHub Desktop.
Save leben-jp/9ba73d745facc361770db3ac79dfa012 to your computer and use it in GitHub Desktop.
//降順
User::orderBy('created_at', 'desc')->get();
//昇順
User::orderBy('created_at', 'asc')->get();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment