FaCuZ / laravel-theme

Theme and asset managing for laravel
MIT License
138 stars 44 forks source link

Call to undefined method Opis\\Closure\\SerializableClosure::__set_state() #40

Open RyanSacks opened 2 years ago

RyanSacks commented 2 years ago

Hi, I'm using Laravel 7 and when I run php artisan config:cache command I get the following error:

In ConfigCacheCommand.php line 71:
Your configuration files are not serializable.  

In config.php line 660:
Call to undefined method Opis\Closure\SerializableClosure::__set_state() 

I believe this is coming from your package.

After looking on the net, most answers point to this solution. 1) Delete the file bootstrap/cache/config.php But this file doesn't exist in my project so I can't delete it. Any idea how to fix this?

usmaneshop commented 2 years ago

Same error found in laravel 8, @RyanSacks did you found any solution of this problem?