Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel 6 orderby

// Make sure column names are correct
$inquiries = Inquiry::orderBy('status', 'ASC')
    ->orderBy('created_at', 'DESC')
    ->get();

Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #orderby
ADD COMMENT
Topic
Name
5+8 =