public function render() { if (is_null($this->selected)) { $this->selected = option($this->id); } return view('vendor.option-form.select')->with(['id' => $this->id, 'items' => $this->items, 'selected' => $this->selected]); }