Zamówienie laravel przez
$users = DB::table('users')
-> orderBy('name', 'desc')
-> get();
unmeego
$users = DB::table('users')
-> orderBy('name', 'desc')
-> get();
$posts = Post::orderBy('id', 'DESC')->get();
$inquiries = Inquiry::all()->sortByDesc('created_at')->sortByDesc('Status')->values();
$users = User::where('name','Joe')
->orderBy('id')
->get();