Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel descending order paginate eloquent

$posts = $this->post->orderBy('id', 'DESC')->get(); //paginate with descending order
 
PREVIOUS NEXT
Tagged: #laravel #descending #order #paginate #eloquent
ADD COMMENT
Topic
Name
1+9 =