Open simonworkhouse opened 3 days ago
Enable session blocking with the config session.block set to true and proceed to the admin panel.
I don't see the session.block
config option mentioned in the docs. Where did you see it?
Anyways, I've opened a PR which should fix this for you. 👍
Bug description
The admin panel throws an error when session blocking is enabled, see https://laravel.com/docs/11.x/session#session-blocking
I'd suggest that some of the blame lies with Laravel as the
Illuminate\Session\SessionServiceProvider
is responsible for attaching aIlluminate\Contracts\Cache\Factory
instance but it only does this on theIlluminate\Session\Middleware\StartSession
middleware specifically (inIlluminate\Session\SessionServiceProvider
and hence it's missed fromStatamic\Http\Middleware\CP\StartSession
.How to reproduce
Enable session blocking with the config
session.block
set totrue
and proceed to the admin panel.Logs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Additional details
No response