| Q | A
| ----------------- | ---
| Bug? | yes
| New Feature? | no
| Framework | Laravel
| Framework version | 5.4.24
| Package version | latest
| PHP version | 7.0.y
I wanted to cache the config as usual but because of the closure
/*
|--------------------------------------------------------------------------
| User Model & Resolver
|--------------------------------------------------------------------------
|
| Define the User model class and how to resolve a logged User ID.
|
*/
'user' => [
'model' => App\User::class,
'resolver' => function () {
return Auth::check() ? Auth::user()->getAuthIdentifier() : null;
},
],
it renders artisan and the laravel app unusable.
No problems when using php artisan config:cache
Use php artisan config:cache
Remove the closure :P
Oh for fuck's sake, not this again. Mate, I've spent quite an amount of time properly documenting the package. Why would it be easier to create a new issue and wait for a reply, than doing a simple search, either in the GitHub issues or the troubleshooting section.
Sorry @quetzyg ^.^#