18 lines
493 B
PHP
18 lines
493 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();
|