Пример #1
0
 /**
  * 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]);
 }
Пример #2
0
 /**
  * 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]));
 }