setModel($this->getModel(), [$key]); } return $record; } public function getRecord(): Model { return $this->record; } public function getRecordTitle(): string | Htmlable { $resource = static::getResource(); if (! $resource::hasRecordTitle()) { return Str::headline($resource::getModelLabel()); } return $resource::getRecordTitle($this->getRecord()); } }