michaeldouglas/laravel-pagseguro

Your configuration files are not serializable.

leonardyrj opened this issue · 0 comments

Quando coloco no arquivo de configuração config/laravelpagseguro.php essa configuração

'notification' => [ 'callback' => function ($information) { // Callable //\Log::debug(print_r($information, 1)); }, 'credential' => 'default', // Callable 'route-name' => 'pagseguro.notification', // Criar uma rota com este nome ],

Quando dou o comando no terminal config:cache ocorre esse problema:

` LogicException : Your configuration files are not serializable.

at /home/leonardy/Projetos/simulados-militares/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/leonardy/Projetos/simulados-militares/bootstrap/cache/config.php:428

`