how to see if record attributes exists laravel database 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
}