laravel check if record not exists validation code example
Example: check for an existing user laravel eloquent
$users = User::where('email', '=', $request->input('email'))->first();
if ($users === null) {
// User does not exist
} else {
// User exits
}