I am trying to get working Lumen session but only for a specific route, since on other I don't need it.
All I find is to enable middlewhere like
$app->middleware([
'Illuminate\Cookie\Middleware\EncryptCookies',
'Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse',
'Illuminate\Session\Middleware\StartSession',
'Illuminate\View\Middleware\ShareErrorsFromSession',
]);
(source https://stackoverflow.com/a/32635502/1861519)
But this will do a global session setting. But I needed it only as sad on specific route.