Auth::loginUsingId does not work on Lumen

Asked

Viewed 86 times

1

I’m trying to use the method Auth::loginUsingId in Lumen, but I get the following error :

(1/1) Badmethodcallexception Method loginUsingId does not exist. in Macroable.php (line 74) at Requestguard->__call('loginUsingId', array(1)) in Authmanager.php (line 294)

I tested using the same method in a clean installation of Laravel and it works. Could someone help me?

1 answer

1


In the archive bootstrap/app.php should be commenting on the use of Facades in the Lumen then strip the line like this:

is like this:

// $app->withFacades();
// $app->withEloquent();

uncouth

$app->withFacades(); // habilitando o Facade
$app->withEloquent(); // habilitando o uso do Eloquent

restart the server

  • thank you very much!

  • If the @Arielconti answer is accepted as the answer to your question

Browser other questions tagged

You are not signed in. Login or sign up in order to post.