Answers for "how to check database entery exists in laravel 8"

PHP
1

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
}
Posted by: Guest on August-18-2020

Code answers related to "how to check database entery exists in laravel 8"

Browse Popular Code Answers by Language