laravel get first element of query code example
Example: laravel get first record
'First email'
User::whereEmail($email)->first();
'First Record'
User::first();
'First email'
User::whereEmail($email)->first();
'First Record'
User::first();