Adding middleware to specific resource pages in Filament. Add this code to your resource class. /** * Bring our routes online. * @return Closure */ public static function getRoutes(): Closure { return function () { $slug = static::getSlug(); Route::name("{$slug}.") ->prefix($slug) ->middleware(static::getMiddlewares()) ->group(function () { foreach (static::getPages() as $name => $page) { Route::get($page['route'], $page['class']) ->name($name) ->middleware(array_key_exists('middleware', $page) ? $page['middleware'] : null); } }); }; } Add this code to the resource pages you wish to add unique middleware to. /** * Overriding the parent method to add a middleware attribute. * @param string $path * @return string[] */ public static function route(string $path): array { return [ 'class' => static::class, 'route' => $path, 'middleware' => [ 'password.confirm' ] ]; }