qcod/laravel-settings

Closure in config files throw exception when run php artisan config:cache

sonicalabs opened this issue · 0 comments

Hi,

As Laravel Documentation explains, closures aren't accepted in config files (at least in Laravel 6.x) throwing an exception error when recreate laravel cache files.

I just found one in /vendor/qcod/laravel-app-settings/src/config/app_settins.php

Lines 94-98

// settings group 'setting_group' => function() { // return 'user_'.auth()->id(); return 'default'; }

when you change to

'setting_group' => 'default'

error is gone and laravel generate correctly cache configuration files.

Regards,
Daniel