What I ended up doing is placing this in my index.php, just above $app->run() :
$uri = $_SERVER['REQUEST_URI'];
if(!in_array($uri, ['/','/about'])){
Config::set('session.cookie','laravel_'.substr($uri, 1).'_session');
}
I doubt it is the best solution, but it seems to work. Based on http://forumsarchive.laravel.io/viewtopic.php?id=999 btw.
Any tips on making this solution better are very welcome!
Jeroen
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community