diff --git a/src/Flynsarmy/DbBladeCompiler/DbView.php b/src/Flynsarmy/DbBladeCompiler/DbView.php index 6660aa1..5ce4f01 100755 --- a/src/Flynsarmy/DbBladeCompiler/DbView.php +++ b/src/Flynsarmy/DbBladeCompiler/DbView.php @@ -109,8 +109,10 @@ protected function getContents() { $field = $this->config->get('db-blade-compiler.model_property'); $this->path->{$field} = $this->content_field; + $compiler = $this->engine->getCompiler(); + $compiler->compile($this->path); - return parent::getContents(); + return $this->engine->getContent($compiler->getCompiledPath($this->path), $this->data); } /**