Laravel Lumen Memcached not found

后端 未结 12 1990
無奈伤痛
無奈伤痛 2021-01-31 01:55

Ok, I just started with Lumen and I\'m trying to use the Auth, but a call to either Auth::check or any other function of Auth.. leads to the below Error Fatal error: Cla

12条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-31 02:35

    I had a similar problem now, I couldn't track it down but my guess is that it has something to do with the fact that the defaults configurations are stored in the vendor/laravel/lumen-framework/config folder, the DotEnv::$inmutable setting and the artisan serveserver.

    The solution that worked for me was:

    1. Add in bootstrap/app.php the following: Dotenv::makeMutable(); Dotenv::load(__DIR__.'/../'); Dotenv::makeImmutable();

    2. in the .env file, set all the configuration to "basic drivers" (array, file) even if you are not going to use them, because you w

提交回复
热议问题