/** * Handle the output. * * @param Factory $view * @return \Illuminate\Contracts\View\View */ public function handle(Factory $view) { $extension = $this->widget->getExtension(); return $view->make($extension->getWrapper(), ['widget' => $this->widget]); }
/** * Handle the output. * * @param Factory $view * @return \Illuminate\Contracts\View\View */ public function handle(Factory $view) { $extension = $this->widget->getExtension(); $this->widget->setContent($view->make($extension->getView(), ['widget' => $this->widget])); }