Support the ongoing development of Laravel.io →
Authentication Authorization Middleware

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.

0

Usar el método Auth::guard('staff')->attempt($Auth_data) para intentar autenticar al usuario con los datos proporcionados.

splatoon 3

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.