mercredi 24 janvier 2018

Auth not working in Laravel Tinker

From within Tinker I am trying to:

>>> Auth::loginUsingId(12);
=> false
>>> Auth::user();
=> null
>>> Auth::attempt(['email' => 'my@email.com']);
=> false

I am guessing that since Auth typically uses session data, and maybe sessions don't work with tinker.

Is it possible to authenticate within tinker?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire