rawilk/profile-filament-plugin
Filament plugin that jumpstarts a user profile area with multi-factor authentication, password and session management, migrations, and sensible defaults—opinionated but customizable. Designed to remove boilerplate and integrate cleanly into your panel.
This package offers a few of its own render hooks to allow you to render Blade content at certain points in its views.
To register render hooks for the package, you can call FilamentView::registerRenderHook() from a service provider or middleware. The first argument is the name of the render hook, and the second argument is a callback that returns the content to be rendered.
use Filament\Support\Facades\FilamentView;
use Illuminate\Support\Facades\Blade;
use Rawilk\ProfileFilament\Enums\RenderHook;
FilamentView::registerRenderHook(
RenderHook::SudoChallengeAfter->value,
fn (): string => Blade::render('<div>Custom content after sudo challenge form</div>')
);
{tip} The package's render hooks work the same way as any of Filament's render hooks do.
Using class Rawilk\ProfileFilament\Enums\RenderHook
RenderHook::MultiFactorChallengeAfter - After a MFA challenge formRenderHook::MultiFactorChallengeBefore - Before a MFA challenge formRenderHook::SudoChallengeAfter - After a sudo challenge formRenderHook::SudoChallengeBefore - Before a sudo challenge formHow can I help you explore Laravel packages today?