Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel | eloquent | db | randomly fetch | query data

1
2
3
4
5
public function index()
{
    $data = Post::inRandomOrder()->limit(10)->get();
    dd($data);
}
Source by codeplaners.com #
 
PREVIOUS NEXT
Tagged: #laravel #eloquent #db #randomly #fetch #query #data
ADD COMMENT
Topic
Name
5+6 =