kaantanis/filament-password-confirmation
Filament Password Confirmation adds Laravel-style password confirmation to Filament panels, prompting users to re-enter their password before sensitive actions. A simple way to protect critical admin operations and strengthen panel security.
composer.json, the service provider, any config file, and especially the RequirePassword middleware source to confirm the actual middleware alias, config keys, redirect behavior, and supported Filament/Laravel versions.composer require kaantanis/filament-password-confirmation. Because the last release was 2022-11-14 and the repo is archived, pin the version and expect to fork or copy the middleware if you need changes.php artisan vendor:publish --tag=filament-password-confirmation-config, then inspect the timeout/session key/redirect settings before enabling it.Auth and session state are available.Route::middleware(['web', 'auth', 'require-password'])->group(function () {
// sensitive admin routes
});
Confirm the exact alias from the package service provider before using it.config('session.lifetime') and your “remember me” policy. A password-confirmation window shorter than the session lifetime is the point; matching them exactly defeats the protection.$this->travel(31)->minutes();
$this->get('/admin')->assertRedirect('/password/confirm');
Adjust the assertion to the package’s actual redirect/response.composer.json constraints and run the full admin flow on a staging copy before adopting.StartSession and authentication middleware, but before controllers/Livewire components that assume a confirmed password. A misplaced middleware may see no authenticated user or no session timestamp.Accept/X-Livewire headers, then adjust the middleware to return a JSON 423/401 response or a Filament-compatible redirect for those requests.Auth::check().php artisan config:clear and php artisan cache:clear in local/staging debugging.app/Http/Middleware, rename the session key, add guard/panel awareness, and own the redirect logic. Keep the package as reference rather than a long-term dependency.How can I help you explore Laravel packages today?