Laravel | fasih | db | ambil secara acak | data kueri

1
2
3
4
5
public function index()
{
    $data = Post::inRandomOrder()->limit(10)->get();
    dd($data);
}
Johnvict