"php artisan cache:config" give error
Created 10 months 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  —  10 months ago Best Answer

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

pooria  —  10 months 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  —  10 months ago Best Answer

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

ryanthompson  —  10 months ago

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

wakanda  —  10 months ago
johnny5  —  10 months ago