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')])
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2BooAV5
via IFTTT
Aucun commentaire:
Enregistrer un commentaire