Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Profile Filament Plugin Laravel Package

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.

View on GitHub
Deep Wiki
Context7

title: Actions sort: 3

Introduction

Not to be confused with the Filament actions in the package, some functionality of this package is implemented in action classes. You can override the default behavior by creating your own action classes and registering them in the config/profile-filament.php config file.

Overriding actions

Here is an example where we override the UpdatePasswordAction to add custom logic after the password for a user is updated. We are extending the default action class in this example, but you don't have to as long as you implement the default action class's interface, which is Rawilk\ProfileFilament\Contracts\UpdatePasswordAction in this case.

First, let's create the custom action class:

namespace App\Actions;

use Illuminate\Contracts\Auth\Authenticatable as User;
use Rawilk\ProfileFilament\Actions\UpdatePasswordAction;

class CustomUpdatePasswordAction extends UpdatePasswordAction
{
    public function __invoke(User $user, string $newPassword)
    {
        // Call the parent method to update the password
        parent::__invoke($user, $newPassword);

        // Add your custom logic here
    }
}

Next, register the custom action in the config/profile-filament.php config file:

// config/profile-filament.php

return [
    // ...
    'actions' => [
        // ...
        'update_password' => App\Actions\CustomUpdatePasswordAction::class,
    ],
];

Overriding webauthn actions

The actions related to WebAuthn are stored in the webauthn.actions config key instead of the actions key in the config/profile-filament.php config file.

Overriding them requires the same process as the other actions in the package; once you've created your custom webauthn action you can place it in the webauthn.actions config key for the relevant action you're overriding:

// config/profile-filament.php

return [
    // ...
    'webauthn' => [
        'actions' => [
            'store_security_key' => App\Actions\CustomStoreSecurityKeyAction::class,
        ],
    ],
];
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours