'clear']; protected $rules = [ 'name' => 'required|string', 'mount_path' => 'required|string', 'host_path' => 'string|nullable', ]; public function mount() { $this->parameters = Route::current()->parameters(); } public function submit() { $this->validate(); $this->emitUp('submit', [ 'name' => $this->name, 'mount_path' => $this->mount_path, 'host_path' => $this->host_path, ]); } public function clear() { $this->name = ''; $this->mount_path = ''; $this->host_path = null; } }