path = $path; } /** * Get the view / contents that represent the component. * * @return \Illuminate\Contracts\View\View|\Closure|string */ public function render() { if ($this->path) { return view($this->path.'.captcha'); } return view('partials.captcha'); } }