Answers for "orderByDesc laravel"

PHP
5

laravel order by desc

$posts = Post::orderBy('id', 'DESC')->get();
Posted by: Guest on December-22-2020
5

order By Asc in laravbel

->orderBy('id', 'DESC');
Posted by: Guest on October-05-2020
7

laravel not in query

DB::table(..)->select(..)->whereNotIn('book_price', [100,200])->get();
Posted by: Guest on September-26-2020
0

laravel 6 orderby

// Make sure column names are correct
$inquiries = Inquiry::orderBy('status', 'ASC')
    ->orderBy('created_at', 'DESC')
    ->get();
Posted by: Guest on December-07-2020
0

DB::table('users')->get(); id 1

$users = DB::table('users')where('id','=', $userid)->get();
Posted by: Guest on October-22-2020

Browse Popular Code Answers by Language