diff --git a/src/Blade.php b/src/Blade.php index e4d3875..d04b664 100644 --- a/src/Blade.php +++ b/src/Blade.php @@ -40,6 +40,11 @@ public function __construct($viewPaths, string $cachePath, ContainerInterface $c $this->compiler = $this->container->get('blade.compiler'); } + public function render(string $view, array $data = [], array $mergeData = []): string + { + return $this->make($view, $data, $mergeData)->render(); + } + public function make($view, $data = [], $mergeData = []): View { return $this->factory->make($view, $data, $mergeData);