Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
vanthao03596 committed Apr 5, 2021
1 parent 0b79559 commit 285cf46
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,30 @@ $rules = [
$this->validate(...);
```

## Cleaning up the log

After using the package for a while you might have recorded a lot of password history. This package provides an artisan command password-history:clean to clean the history.

```bash
php artisan password-history:clean
```

```php
//app/Console/Kernel.php

protected function schedule(Schedule $schedule)
{
$schedule->command('password-history:clean')->daily();
}
```

Overwrite the months to keep per call

```bash
php artisan password-history:clean --months=6
```


## Testing

```bash
Expand Down

0 comments on commit 285cf46

Please sign in to comment.