laravel get 4 record code example
Example 1: laravel eloquent get 10 records
Model::all()->take(10)->get();
Example 2: laravel where
$users = DB::table('users')
->whereMonth('created_at', '12')
->get();
Model::all()->take(10)->get();
$users = DB::table('users')
->whereMonth('created_at', '12')
->get();