Skip to content

MartinaSpagnolo/change-password

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Filament Change Password Page Plugin

A simple and customizable filament plugin that provides a standalone Change Password page for your laravel filament admin panel.

πŸ”— GitHub Repository

https://github.com/HardikKhorasiya09/change-password


πŸš€ Features

  • Adds a dedicated Change Password page to your filament panel.
  • Clean, user-friendly UI.
  • Easily extendable and customizable.
  • Secure password update logic.

πŸ›  Installation and Setup

You can install this plugin via Composer.

Step 1: Install the Plugin

Run the following command to install the package via Composer:

composer require hardikkhorasiya09/change-password

Step 2: Add this into your Filament PanelProvider class panel()

use Hardikkhorasiya09\ChangePassword\ChangePasswordPlugin;

$panel->...
    ->plugins([
      ...
      ChangePasswordPlugin::make()      //required to enable this extension
    ]); 

βš™οΈ Step 3: (Optional) Restrict Page Access by User

If you want to restrict access to the Change Password page for specific users, you can define a canAccessChangePassword() method in your User model.

// In app/Models/User.php

public function canAccessChangePassword(): bool
{
    // Example: Only allow users with 'admin' role
    return $this->role === 'admin';
}

πŸ” Usage

Once installed and registered, a new Change Password page will appear in the user menu (or wherever you've configured it). Users can securely change their current password using this interface.

πŸ“· Screenshot

Change Password Page Screenshot Change Password Page Screenshot

About

customize

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 92.3%
  • Blade 7.7%