up
This commit is contained in:
@@ -8,4 +8,12 @@ use Filament\Resources\Pages\CreateRecord;
|
|||||||
class CreateOjal extends CreateRecord
|
class CreateOjal extends CreateRecord
|
||||||
{
|
{
|
||||||
protected static string $resource = OjalResource::class;
|
protected static string $resource = OjalResource::class;
|
||||||
|
|
||||||
|
protected function mutateFormDataBeforeCreate(array $data): array
|
||||||
|
{
|
||||||
|
$data['fecha_envio'] = now();
|
||||||
|
$data['tipo'] = 'Ojal';
|
||||||
|
|
||||||
|
return $data;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,4 +8,12 @@ use Filament\Resources\Pages\CreateRecord;
|
|||||||
class CreatePrensilla extends CreateRecord
|
class CreatePrensilla extends CreateRecord
|
||||||
{
|
{
|
||||||
protected static string $resource = PrensillaResource::class;
|
protected static string $resource = PrensillaResource::class;
|
||||||
|
|
||||||
|
protected function mutateFormDataBeforeCreate(array $data): array
|
||||||
|
{
|
||||||
|
$data['fecha_envio'] = now();
|
||||||
|
$data['tipo'] = 'Prensilla';
|
||||||
|
|
||||||
|
return $data;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user