22 lines
538 B
PHP
22 lines
538 B
PHP
<?php
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use App\Models\CabinetTabletSetting;
|
|
use Illuminate\Console\Command;
|
|
|
|
class ResetCabinetTabletOverrides extends Command
|
|
{
|
|
protected $signature = 'cabinet:reset-overrides';
|
|
|
|
protected $description = 'Setzt die Sonderöffnungszeiten des Cabinet Info-Tablets zurück';
|
|
|
|
public function handle(): int
|
|
{
|
|
CabinetTabletSetting::current()->clearOverrides();
|
|
|
|
$this->info('Cabinet-Tablet Sonderöffnungszeiten wurden zurückgesetzt.');
|
|
|
|
return self::SUCCESS;
|
|
}
|
|
}
|