Files
Network-MGMT/routes/console.php
T

23 lines
613 B
PHP

<?php
use App\Models\NetworkSegment;
use Illuminate\Foundation\Inspiring;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Schedule;
Artisan::command('inspire', function () {
$this->comment(Inspiring::quote());
})->purpose('Display an inspiring quote');
// Netzwerk-Scans automatisch ausführen
// Der Scheduler prüft jede Minute ob ein Segment fällig ist
Schedule::command('network:scan')
->everyMinute()
->withoutOverlapping()
->runInBackground();
// Update-Prüfung alle 6 Stunden
Schedule::command('app:check-update')
->everySixHours()
->runInBackground();