Skip to content

Commit

Permalink
Change the recommended usage to include '->render()' so as to avoid c…
Browse files Browse the repository at this point in the history
…asting to __toString which was severely curtailing error reporting

see this discussion: https://stackoverflow.com/questions/26534016/laravel-error-method-illuminate-view-view-tostring-must-not-throw-an-excep
  • Loading branch information
Jim Rohrer committed Jun 20, 2019
1 parent 8dc7d31 commit 68a3c20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -25,7 +25,7 @@ use Jenssegers\Blade\Blade;

$blade = new Blade('views', 'cache');

echo $blade->make('homepage', ['name' => 'John Doe']);
echo $blade->make('homepage', ['name' => 'John Doe'])->render();
```

You can also extend Blade using the `directive()` function:
Expand Down

0 comments on commit 68a3c20

Please sign in to comment.