"php artisan cache:config" give error
Created 5 years ago by wakanda

Hi community !

With deployer and recipe of Laravel, he's come with this command : $ php artisan cache:config This generate a single file for performance but give errors : Each row with : "Closure::__set_state(array(..." I can solve this by remove : bootstrap/cache/config.php

If you have a better solution for fix it, i take ! :D Pyrocms : V.3.6

ryanthompson  —  5 years ago Best Answer

I am working on replacing closures with handler classes! So this will soon be resolved.

pooria  —  5 years ago

@wakanda Hi. This is not related to Pyrocms. The problem is that Laravel does not support closures in config files:

https://github.com/laravel/framework/issues/9625

ryanthompson  —  5 years ago Best Answer

I am working on replacing closures with handler classes! So this will soon be resolved.

ryanthompson  —  5 years ago

I have some work to do around route caching as well to make sure it's recompiled correctly when changes are made.

wakanda  —  5 years ago
johnny5  —  5 years ago