Closed SimonBarrettACT closed 3 years ago
If the following line is in the config file:
'get_avatar_url' => fn ($user) => $user->getAvatarUrl(),
When running:
php artisan optimize
A Your configuration files are not serializable. error is produced.
This is caused by using a closure in the config file.
Thanks a ton for the PR! I merged it and released in version 2.0.1. :) Good luck!
If the following line is in the config file:
'get_avatar_url' => fn ($user) => $user->getAvatarUrl(),
When running:
php artisan optimize
A Your configuration files are not serializable. error is produced.
This is caused by using a closure in the config file.