canAccessPanel is being called for none filament pages

My other paths are registered at the end of my routes/web.php file, like this:
Route::any('/{path}', ResourceController::class)
    ->middleware(['auth', AllowedPathsMiddleware::class])
    ->where('path', '.*');
Was this page helpful?