One thing that seems to be missing from the validation when a person registers is a check that there isn't already a user with the email address that the person entered. Could there be some magic that is doing that?? Or maybe it will be covered in a later episode.
Yeah, it could be done by applying a new rule like this (I want the email column in the users table to hold unique value) $attributes = request()->validate([ 'email' => ['required', 'email', 'unique:users,email'] ]);
Jeffrey : I estimate this episode to be *seven* minutes.
Me :
*Looks at the title.*
*Looks at the timestamp.*
*Sighs.*
Maybe you share this magic recipe ? ;) Best of the best
One thing that seems to be missing from the validation when a person registers is a check that there isn't already a user with the email address that the person entered. Could there be some magic that is doing that?? Or maybe it will be covered in a later episode.
Yeah, it could be done by applying a new rule like this (I want the email column in the users table to hold unique value)
$attributes = request()->validate([
'email' => ['required', 'email', 'unique:users,email']
]);
After logging out, if I click on the back button it shows the logout button .ie Maybe it logs me back in
an old fashioned, right?
oddly User::create does not exist.
Your time estimates are getting worse with each video. Is this part of preparing newbies for real developer jobs?
the time estimates are jokes. meant to be fun
I was thinking the same thing. Teaching people how to BS during stand ups, lol