Files
Virtnet.bond/app/Admin/Resources/CancelledServiceResource/Pages/CreateCancelledService.php

19 lines
436 B
PHP

<?php
namespace App\Admin\Resources\CancelledServiceResource\Pages;
use App\Admin\Resources\CancelledServiceResource;
use Filament\Resources\Pages\CreateRecord;
class CreateCancelledService extends CreateRecord
{
protected static string $resource = CancelledServiceResource::class;
protected function mutateFormDataBeforeCreate(array $data): array
{
$data['status'] = 'cancelled';
return $data;
}
}