File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class PruneCommand extends Command
1616 public function handle (): int
1717 {
1818 $ this ->call ('model:prune ' , [
19- '---- model ' => MailLog::class,
19+ '--model ' => MailLog::class,
2020 ]);
2121
2222 return static ::SUCCESS ;
Original file line number Diff line number Diff line change 44
55use Illuminate \Database \Migrations \Migration ;
66use Illuminate \Database \Schema \Blueprint ;
7+ use Illuminate \Support \Facades \Artisan ;
78use Illuminate \Support \Facades \DB ;
89use Illuminate \Support \Facades \Schema ;
910use Illuminate \Support \Str ;
@@ -14,6 +15,8 @@ public function up(): void
1415 {
1516 $ table = config ('mail-viewer.table ' , 'mail_logs ' );
1617
18+ Artisan::call ('mail-viewer:prune ' );
19+
1720 DB ::table ($ table )
1821 ->latest ('date ' )
1922 ->each (function (stdClass $ mail ) use ($ table ) {
You can’t perform that action at this time.
0 commit comments