Add prune command for telescope

This commit is contained in:
philipp lang 2022-12-13 21:00:38 +01:00
parent cf5445a0e3
commit 71c3e98c6b
1 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@ namespace App\Console;
use App\Letter\Actions\LetterSendAction;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
use Laravel\Telescope\Console\PruneCommand;
class Kernel extends ConsoleKernel
{
@ -24,7 +25,7 @@ class Kernel extends ConsoleKernel
*/
protected function schedule(Schedule $schedule)
{
// $schedule->command('inspire')->hourly();
$schedule->command(PruneCommand::class, ['--hours' => 168])->daily(); // 168h = 7 Tage
}
/**