flipboxstudio / lumen-generator

A Lumen Generator You Are Missing
https://packagist.org/packages/flipbox/lumen-generator
MIT License
824 stars 126 forks source link

Support for config:clear and route:cache #111

Open Stevemoretz opened 2 years ago

Stevemoretz commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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.