Skip to content

Reset password directly from your account on Nova 4 dashboard 🔑

Notifications You must be signed in to change notification settings

websnack-dk/nova-password-reset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Nova 4 - Reset Password

Easily reset your password from dashboard on Nova 4.

Screenshot preview

Laravel Nova Password Reset

Requirements

Installation

Register tool in tools method of the NovaServiceProvider:

// in app/Providers/NovaServiceProvider.php
 
public function tools()
{
    return [
    
        // ...
        
        (new \Websnack\ResetPassword\ResetPassword()),
        
    ];
}

Usage

After installation, you can find the tool in the sidebar of admin panel dashboard. if you have added a custom userMenu you have to manuel add the link to the tool like shown below.

// in app/Providers/NovaServiceProvider.php

Nova::userMenu(static function (Request $request, Menu $menu) {
    return $menu
    
    // ...
        ->append(MenuItem::externalLink('Reset Password', '/reset-password'))
        
}),

Configuration

Export config file to change position settings or minimum password length

php artisan vendor:publish --tag="nova-reset-password-config"

Open and edit file config/nova-password-reset.php

'min_password_length'   => 8

'show_on_sidebar'       => true,

'show_on_profile_menu'  => true,

Contributor