18 lines
488 B
PHP
18 lines
488 B
PHP
<?php
|
|
|
|
namespace Paymenter\Extensions\Others\Security\Admin\Resources\BlockedIPResource\Pages;
|
|
|
|
use Filament\Resources\Pages\CreateRecord;
|
|
use Paymenter\Extensions\Others\Security\Admin\Resources\BlockedIPResource;
|
|
|
|
class CreateBlockedIP extends CreateRecord
|
|
{
|
|
protected static string $resource = BlockedIPResource::class;
|
|
|
|
protected function mutateFormDataBeforeCreate(array $data): array
|
|
{
|
|
$data['blocked_at'] = now();
|
|
return $data;
|
|
}
|
|
}
|