PHPackages                             monaye/nova-profile-resource-tools - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. monaye/nova-profile-resource-tools

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

monaye/nova-profile-resource-tools
==================================

A Laravel Nova resource tool.

11421[2 issues](https://github.com/monaye/nova-profile-resource-tools/issues)Vue

Since Mar 7Pushed 4y ago1 watchersCompare

[ Source](https://github.com/monaye/nova-profile-resource-tools)[ Packagist](https://packagist.org/packages/monaye/nova-profile-resource-tools)[ RSS](/packages/monaye-nova-profile-resource-tools/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Nova Profile Resource Tools
---------------------------

[](#nova-profile-resource-tools)

Laravel Nova Profile Resource Tools provide the 3 resource tools ([Resource Tools](https://nova.laravel.com/docs/3.0/customization/resource-tools.html))

1. NovaProfileInformationTools
    Provide a input fields and the default controller method to update the `name` and `email` fields in the `users` table.
    [![profile-field](https://user-images.githubusercontent.com/1147313/155786027-6cacf9b2-4411-4148-a0e4-6a12f07902d1.png)](https://user-images.githubusercontent.com/1147313/155786027-6cacf9b2-4411-4148-a0e4-6a12f07902d1.png)
2. NovaPasswordTools
    Allow user to update the password. [![profile-password](https://user-images.githubusercontent.com/1147313/155787851-0655c450-081a-4574-a1da-28243e15253f.png)](https://user-images.githubusercontent.com/1147313/155787851-0655c450-081a-4574-a1da-28243e15253f.png)
3. NovaDeleteAccountTools
    Provide the functionality to delete the user account by confirming existing current password. [![profile-delete-account](https://user-images.githubusercontent.com/1147313/155789189-c1f35ca9-6aa0-408e-88cc-74bee4881747.png)](https://user-images.githubusercontent.com/1147313/155789189-c1f35ca9-6aa0-408e-88cc-74bee4881747.png)

### Installation

[](#installation)

```
composer require monaye/nova-profile-resource-tools
```

This package rely on the full Tailwind and recommend using the `optimistdigital/nova-tailwind`.

```
composer require optimistdigital/nova-tailwind

```

### Usage

[](#usage)

```
use Monaye\NovaProfileResourceTools\NovaPasswordTools;
use Monaye\NovaProfileResourceTools\NovaDeleteAccountTools;
use Monaye\NovaProfileResourceTools\NovaProfileInformationTools;

public function fields(Request $request)
{
    return [
        NovaProfileInformationTools::make('Update Profile')
            ->name_user($request->user()->name)
            ->email($request->user()->email),

        NovaPasswordTools::make('Change Password'),

        NovaDeleteAccountTools::make('Delete Account'),
    ];
}
```

---

Configuring Controller
----------------------

[](#configuring-controller)

This package come with a default controller and methods to handle all 3 APIs call from the components. You could overwrite the controller@method to handle the API call instead of the default one.

To user your own controller@method, first publish the config file

```
php artisan vendor:publish --tag=nova-profile-resource-tools

```

Open the config file `config/nova-profile-resource-tools.php` and update.

```
