Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel get all records order by

$posts = Post::orderBy('created_at', 'desc')->get();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #records #order
ADD COMMENT
Topic
Name
9+1 =