vendredi 31 mars 2017

Laravel 5.3 JWT Auth Login Once via custom token

In parallel to credentials based authentication Auth::once($credential_array) I need another method to login that should work for only udid attribute of user model.

Auth::once(['udid' => '00123456789XYZ']);

How can I implement it?
Do I need to implement custom guard or user provider here or I can extend existing?

I am using Eloquent User Provider.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire