Skip to content

Commit

Permalink
🚑 Add back render method
Browse files Browse the repository at this point in the history
  • Loading branch information
jenssegers committed Jun 6, 2019
1 parent 935de07 commit 8dc7d31
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8dc7d31

Please sign in to comment.