Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaycalicut17 authored Sep 17, 2023
1 parent fecc72d commit 08b92a6
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,22 +81,6 @@ class User extends Authenticatable
}
```

- To periodically delete the model from the trash, add model:prune Artisan command in your application's App\Console\Kernel class and change the config\trash.php pruning status to "true". You can also enter your pruning period here. (Optional):

```diff
+ use Ajaycalicut17\LaravelTrash\Models\Trash;

/**
* Define the application's command schedule.
*/
protected function schedule(Schedule $schedule): void
{
+ $schedule->command('model:prune', [
+ '--model' => Trash::class,
+ ])->daily();
}
```

- To override the trash name (Optional):

```diff
Expand Down Expand Up @@ -136,6 +120,22 @@ class User extends Authenticatable
php artisan vendor:publish --provider="Ajaycalicut17\LaravelTrash\LaravelTrashServiceProvider" --tag="config"
```

- To periodically delete the model from the trash, add model:prune Artisan command in your application's App\Console\Kernel class and change the config\trash.php pruning status to "true". You can also enter your pruning period here. (Optional):

```diff
+ use Ajaycalicut17\LaravelTrash\Models\Trash;

/**
* Define the application's command schedule.
*/
protected function schedule(Schedule $schedule): void
{
+ $schedule->command('model:prune', [
+ '--model' => Trash::class,
+ ])->daily();
}
```

## Usage 🔨

- To get all trash model data:
Expand Down

0 comments on commit 08b92a6

Please sign in to comment.