Auth::guard('staff')->attempt($Auth_data)
How to validate the mango db collection fields in the above query , in attemt $Auth_data to check login credentials
"personal_data" : { "firstname" : "pandisharathi", "lastname" : "Alagarsamy", "username" : "pandisharathi", "email" : "pandisharathi@gmail.com", "password" : "$2y$10$iBpYyB5vcIoB9.pYeYShIug6T8yl8tdohj7KZZekx4Dz4wpXRv4K6", "contact_no" : "7358994111", "profile" : "pandisharathi", "proof" : "voter id", "documents" : "College" }, The above fields are in my mango db collections . How to validate this in the Auth::gaurd in middleware.
Usar el método Auth::guard('staff')->attempt($Auth_data) para intentar autenticar al usuario con los datos proporcionados.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community