lumen-generator icon indicating copy to clipboard operation
lumen-generator copied to clipboard

Support for config:clear and route:cache

Open Stevemoretz opened this issue 4 years ago • 2 comments

You have done : php artisan optimize but in the same family these guys are left out : php artisan config:cache php artisan route:cache would be great to have them too!

Thanks btw this is a great package!

Stevemoretz avatar Oct 18 '21 11:10 Stevemoretz

Found a way to make this possible using :

app('config')->set('config_name.property_name',value)

Would make it possible to load configurations dynamically :) All is needed now to cache it.

Stevemoretz avatar Oct 22 '21 09:10 Stevemoretz

More info, this gets all the configs : app('config')->all() and then using app('config')->set('name',...) it is possible to set the config dynamically.

Stevemoretz avatar Oct 22 '21 09:10 Stevemoretz