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

Couldn't optimize my project after installed this package . #5

Open
RosyStephen opened this issue Feb 20, 2023 · 0 comments
Open

Couldn't optimize my project after installed this package . #5

RosyStephen opened this issue Feb 20, 2023 · 0 comments

Comments

@RosyStephen
Copy link

php artisan optimize

INFO Caching the framework bootstrap files.

config ................................................................................................................................. 51ms FAIL

LogicException

Your configuration files are not serializable.

at D:\SERVER\sites\global\vendor\laravel\framework\src\Illuminate\Foundation\Console\ConfigCacheCommand.php:84
80▕ require $configPath;
81▕ } catch (Throwable $e) {
82▕ $this->files->delete($configPath);
83▕
➜ 84▕ throw new LogicException('Your configuration files are not serializable.', 0, $e);
85▕ }
86▕
87▕ $this->components->info('Configuration cached successfully.');
88▕ }

1 D:\SERVER\sites\global\bootstrap\cache\config.php:787
Error::("Call to undefined method Closure::__set_state()")

2 D:\SERVER\sites\global\vendor\laravel\framework\src\Illuminate\Foundation\Console\ConfigCacheCommand.php:80
require()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant