I have problem updating my email. id
, prn
, rfid_number
works fine. But in email. I got a problem. Here's my validation:
$validate = $request -> validate([
'id' => 'required|numeric|unique:users,id,'.$user -> id,
'email' => 'required|email|unique:users,email,'.$user -> email,
'prn' => 'required|numeric|unique:users,prn,'.$user -> prn,
'rfid_number' => 'required|numeric|unique:users,rfid_number,'.$user -> rfid_number
]);
Entering email which is not in the database works fine. But when I enter the email of the existing model. "The email has already been taken." shows
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2HeAuRT
via IFTTT
Aucun commentaire:
Enregistrer un commentaire