I have Laravel project and I want to allow users to log in using a username or email but I haven't found any way to pass Or Condition in Auth::attempt() method.
I used below code for logged via email only,
Auth::attempt(['email' => request('email'), 'password' => request('password')])
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire