Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot cache config #250

Closed
TheAlexLichter opened this issue Jun 5, 2017 · 2 comments
Closed

Cannot cache config #250

TheAlexLichter opened this issue Jun 5, 2017 · 2 comments
Labels
duplicate A repeated issue or entry

Comments

@TheAlexLichter
Copy link

Q A
Bug? yes
New Feature? no
Framework Laravel
Framework version 5.4.24
Package version latest
PHP version 7.0.y

Actual Behaviour

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.

Expected Behaviour

No problems when using php artisan config:cache

Steps to Reproduce

Use php artisan config:cache

Possible Solutions

Remove the closure :P

@quetzyg
Copy link
Contributor

quetzyg commented Jun 5, 2017

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.

@quetzyg quetzyg closed this as completed Jun 5, 2017
@TheAlexLichter
Copy link
Author

Sorry @quetzyg ^.^#

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate A repeated issue or entry
Projects
None yet
Development

No branches or pull requests

2 participants