Answers for "validate is in database laravel"

C#
1

validate data exist in database lara vel

if (User::where('email', Input::get('email'))->exists()) {
    // exists
}
Posted by: Guest on July-19-2021
1

validate data exist in database lara vel

$this->validate($request, [
        'email' => 'required|exists:user|email',
    ]);
Posted by: Guest on July-19-2021

Code answers related to "validate is in database laravel"

C# Answers by Framework

Browse Popular Code Answers by Language