validate(); $path = $this->file->store($this->directory, $this->disk); $this->dispatch('media-uploaded', field: $this->field, path: '/storage/'.$path); $this->file = null; } public function render() { return view('livewire.admin.cms.media-uploader'); } }