PHP artisan config:cache 报错问题
vagrant@homestead:~/code/larabbs$ php artisan config:cache
Configuration cache cleared!
LogicException : Your configuration files are not serializable.
at /home/vagrant/code/larabbs/vendor/laravel/framework/src/Illuminate/Foundation/Console/ConfigCacheCommand.php:71
67| require $configPath;
68| } catch (Throwable $e) {
69| $this->files->delete($configPath);
70|
> 71| throw new LogicException('Your configuration files are not serializable.', 0, $e);
72| }
73|
74| $this->info('Configuration cached successfully!');
75| }
Exception trace:
1 Error::("Call to undefined method Closure::__set_state()")
/home/vagrant/code/larabbs/bootstrap/cache/config.php:29
2 require()
/home/vagrant/code/larabbs/vendor/laravel/framework/src/Illuminate/Foundation/Console/ConfigCacheCommand.php:67
Please use the argument -v to see more details.
vagrant@homestead:~/code/larabbs$ cd bootstrap/cache/
vagrant@homestead:~/code/larabbs/bootstrap/cache$ ls
packages.php services.php
vagrant@homestead:~/code/larabbs/bootstrap/cache$
根据站内的教程,获取最近活跃用户使用缓存redis,替换后无效,依然是文件缓存。
1 Error::("Call to undefined method Closure::__set_state()")
/home/vagrant/code/larabbs/bootstrap/cache/config.php:29
这个文件目录里面没有
现在怀疑是这个NFS Plugin的问题。
解决 Windows 系统使用 Homestead 运行 Laravel 本地项目响应缓慢问题
请各位指教一二~
首先,你是开发环境,不建议使用这个命令.其次你是在homestead中报的这个错,没必要去debug.homestead中的错.环境引发的问题,让大牛也会很头疼.最后,要是有条件的话,建议还是买个macbook来开发.