Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mastani committed Dec 16, 2020
1 parent b76ccc0 commit 115a31d
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ Install the package via composer:
$ composer require mastani/nova-password-reset
```

Publish the view:
Publish the view (Will overwrite 'user.blade.php' which is provided by nova):
```
php artisan vendor:publish --force --provider=Mastani\NovaPasswordReset\ToolServiceProvider
php artisan vendor:publish --force --provider="Mastani\NovaPasswordReset\ToolServiceProvider" --tag="nova-views"
```

Register the tool in the `tools` method of the `NovaServiceProvider`:
Expand All @@ -43,6 +43,28 @@ public function tools()
}
```

## Customizations (Optional)

If you want to specify the min length of password you can publish the config file:
```
php artisan vendor:publish --provider="Mastani\NovaPasswordReset\ToolServiceProvider" --tag="config"
```

Now head over to "config/nova-password-reset.php" and you can change the value:
```
'min_password_size' => 5
```
___
You can also use English or Portuguese language or add your own translation:
```
php artisan vendor:publish --provider="Mastani\NovaPasswordReset\ToolServiceProvider" --tag="translations"
```

## Contributors
[Amin Mastani](https://github.com/mastani)

[Newton Evangelista](https://github.com/newtongamajr)

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

0 comments on commit 115a31d

Please sign in to comment.