Answers for "laravel validation check if exists in database by column"

C#
1

validate data exist in database lara vel

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

validate data exist in database lara vel

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

laravel validation if data exists

'user_id' => 'required|exists:App\Models\Users,id'
Posted by: Guest on September-29-2021

Code answers related to "laravel validation check if exists in database by column"

C# Answers by Framework

Browse Popular Code Answers by Language