get single row using model in laravel eloquent code example
Example 1: how to get just the first row from a table in laravel
$user = User::whereEmail($email)->first();
Example 2: laravel query builder select first
$user = DB::table('users')->where('name', 'John')->first();
var_dump($user->name);