laravel 7 select raw first row code example
Example: laravel query builder select first
$user = DB::table('users')->where('name', 'John')->first();
var_dump($user->name);
$user = DB::table('users')->where('name', 'John')->first();
var_dump($user->name);