model_id = $model_id; $this->fieldset_id = $this->model?->fieldset_id; $this->add_default_values = ($this->model?->defaultValues->count() > 0); } #[Computed] public function model() { return AssetModel::find($this->model_id); } #[Computed] public function fields() { return CustomFieldset::find($this->fieldset_id)?->fields; } public function render() { return view('livewire.custom-field-set-default-values-for-model'); } }