get a single row records in Laravel 6 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);