/**
  * @param $file
  * @param array $data
  * @return mixed
  */
 public function render($file, $data = [])
 {
     return $this->blade->make($file, $data)->render();
 }
예제 #2
0
 public function render($path, $params = [])
 {
     $path = str_replace($this->getView()->getViewsDir(), '', $path);
     $path = str_replace('.blade.php', '', $path);
     $blade = new Blade($this->getView()->getViewsDir(), storage_path('views') . '/');
     di()->get('view')->setContent($blade->make($path, $params)->render());
 }