Answers for "check if record exists in laravel"

PHP
5

laravel check record exists

$user = User::where('email', '=', Input::get('email'))->first();
if ($user === null) {
   // user doesn't exist
}
Posted by: Guest on April-08-2020

Code answers related to "check if record exists in laravel"

Browse Popular Code Answers by Language