You've already forked Atomcms-edit
22 lines
484 B
PHP
Executable File
22 lines
484 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Filament\Resources\User\Users\Pages;
|
|
|
|
use App\Filament\Resources\User\Users\UserResource;
|
|
use Filament\Resources\Pages\ViewRecord;
|
|
|
|
class ViewUser extends ViewRecord
|
|
{
|
|
#[\Override]
|
|
protected static string $resource = UserResource::class;
|
|
|
|
#[\Override]
|
|
protected function mutateFormDataBeforeFill(array $data): array
|
|
{
|
|
return static::$resource::fillWithOutsideData(
|
|
$this->getRecord(),
|
|
$data,
|
|
);
|
|
}
|
|
}
|