laravel model check 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
}
$users = User::where('email', '=', $request->input('email'))->first();
if ($users === null) {
// User does not exist
} else {
// User exits
}