laravel all records code example
Example 1: get all data eloquent laravel
Blog::all();
//example usage.
$posts = Blog::all();
Example 2: laravel where
$users = DB::table('users')
->whereDate('created_at', '2016-12-31')
->get();