files($this->folderPath); foreach ($files as $file) { $this->options[] = pathinfo($file, PATHINFO_FILENAME); } } /** * Get the view / contents that represent the component. */ public function render(): View|Closure|string { return view('components.inputs.asset-dropdown'); } }