-
Notifications
You must be signed in to change notification settings - Fork 53
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
Your configuration files are not serializable #23
Comments
Thanks for reporting. what about if you use a class instead of closure for setting group namespace App;
class SettingGroup {
public function handle() {
return 'user_'.auth()->id();
}
} 'setting_group' => 'App\SettingGroup' please try, I will update the readme if it works. |
no joy , returns default .. |
got it fixed for me .. class SetSettingMiddleware
}
|
Same issue, and with closure for select.
to
as an option behaivor, for specify fields with logic. |
I have the same issue. Can you help? |
This issue still exist by default below solution is works: open confi/app_settings.php, find & replace: 'setting_group' => 'App\SettingGroup' |
laravel 6 , php 7.2
sudo php artisan config:cache
LogicException : Your configuration files are not serializable.
at /var/www/html/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Console/ConfigCacheCommand.php:71
67| require $configPath;
68| } catch (Throwable $e) {
69| // $this->files->delete($configPath);
70|
Exception trace:
1 Error::("Call to undefined method Closure::__set_state()")
/var/www/html/laravel/bootstrap/cache/config.php:298
Triggered by
// settings group
'setting_group' => function() {
return 'user_'.auth()->id();
The text was updated successfully, but these errors were encountered: