vendredi 3 juin 2016

Change Laravel config settings from the front end?

I'm using Laravel 5.0. I need to be able to change the value of the session lifetime in config/session.php from the front end, making the value configurable to an admin user of my site.

In the docs for Laravel 4.2 I've read that you can get/set variables using the config facade, like so:

Config::set('session.lifetime', '60');

Config::get('session.lifetime'); // '60'

But it it only changes the configuration value for that request. How do I persist this configuration, making it work across all requests?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1sSxF17
via IFTTT

Aucun commentaire:

Enregistrer un commentaire