records = $records; return $this; } public function modelLabel(string | Closure | null $label): static { $this->modelLabel = $label; return $this; } public function pluralModelLabel(string | Closure | null $label): static { $this->pluralModelLabel = $label; return $this; } public function getModel(): string { return $this->getTable()->getModel(); } public function getModelLabel(): string { $label = $this->evaluate($this->modelLabel); if (filled($label)) { return $label; } return $this->getTable()->getModelLabel(); } public function getPluralModelLabel(): string { $label = $this->evaluate($this->pluralModelLabel); if (filled($label)) { return $label; } return $this->getTable()->getPluralModelLabel(); } public function getRecords(): EloquentCollection | Collection | null { return $this->records = $this->evaluate($this->records); } }