laravel selct by id code example
Example 1: DB::table('users')->get(); id 1
$users = DB::table('users')where('id','=', $userid)->get();
Example 2: DB::table('users')->get();
$product = DB::table('product')->get(['id','product_name']);
$users = DB::table('users')where('id','=', $userid)->get();
$product = DB::table('product')->get(['id','product_name']);