From 8dc7d31201cc25542dc03d40974ff7b583ed4e94 Mon Sep 17 00:00:00 2001 From: Jens Segers Date: Thu, 6 Jun 2019 10:42:05 +0200 Subject: [PATCH] :ambulance: Add back render method --- src/Blade.php | 5 +++++ 1 file changed, 5 insertions(+) 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);