authorizeAccess(); $this->fillForm(); } public function form(Schema $schema): Schema { return $schema ->statePath('data') ->model($this->getRecord()); } protected function authorizeAccess(): void {} protected function fillform(): void { $data = $this->getRecord()->attributesToArray(); $this->form->fill($data); } public function getRecord(): Server { /** @var Server $server */ $server = Filament::getTenant(); return $server; } // TODO: find better way handle server conflict state public static function canAccess(): bool { /** @var Server $server */ $server = Filament::getTenant(); if ($server->isInConflictState()) { return false; } return parent::canAccess(); } }