-
Notifications
You must be signed in to change notification settings - Fork 739
Description
Hi,
after php artisan config:cache
I have an error:
[2017-05-25 10:34:01] production.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Call to undefined method Closure::__set_state() in my-project/bootstrap/cache/config.php:773
This error is because you put function into configs. Could you change it, to fix?
'user_field' => function () { return auth()->user()->id; },
I see you wrote a comment, that's not possible to use in Laravel 5.2. But what I have to do? Should I remove 'user_field' or what?
When change user_field to 'id' it works good.
Could you change default config user_fild value to 'id' instead of closure?
OS System & Version: Linux skey-Inspiron-5737 4.10.0-21-generic #23-Ubuntu SMP Fri Apr 28 16:14:22 UTC 2017 x86_64
Laravel Version: v5.4.23
File Manager Version: v1.7.7
imagick Extension: Not Install
gd Extension: Install