19 lines
436 B
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;
|
|
}
|
|
}
|