mattstauffer / Torch

Examples of using each Illuminate component in non-Laravel applications
MIT License
1.85k stars 210 forks source link

Validation : "Presence verifier has not been set." #173

Closed acargulgurkan closed 4 years ago

acargulgurkan commented 4 years ago

@mattstauffer, I get this error when I check the database for email. What can I do ?

'email' => 'required|email|unique:account,email'

My code: $presence = new DatabasePresenceVerifier($database->getDatabaseManager()); $validator->setPresenceVerifier($presence);

Error: Fatal error: Uncaught RuntimeException: Presence verifier has not been set.