{id} in laravel code example
Example 1: get all data eloquent laravel
Blog::all();
//example usage.
$posts = Blog::all();
Example 2: DB::table('users')->get();
$product = DB::table('product')->get(['id','product_name']);
Blog::all();
//example usage.
$posts = Blog::all();
$product = DB::table('product')->get(['id','product_name']);