Closed ghost closed 5 years ago
The vast majority of websites are not SPAs and so the defaults reflect that. You're free to override the middleware, as you've noticed :)
i know about middleware free overriding, i asking for remove hardcoded middleware call from nova. because of it many devs experiencing troubles. i suggest an solution for it, simple and fastest. where we can override middleware by createing one only for nova, then call them via configuration. whats wrong ?
Description
Nova always trigger middlewareGroup['web'], but it is conflict with my spa based on jwt - without sessions My middlewareGroup is:
So, Nova require errors shared from session
Where is triggering:
NovaApplicationServiceProvider.php:40
NovaApplicationServiceProvider.php:41
Hardcoded 'web' is in:
PendingRouteRegistration.php:54
PendingRouteRegistration.php:24
I suggest to make config entry and move
$middleware=['web']
to$middleware=[]
And call asSo, this solution prevent to conflicting with another SPA or PWA apps.