Skip to content

Commit

Permalink
Laravel 5.2 directive syntax compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
kylekatarnls committed Sep 12, 2017
1 parent 1651761 commit 63998c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tests/BladeDirectivesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,8 @@ public function testCustomDirective()
$this->provider->register();
$this->provider->boot();
Blade::directive('greet', function ($person) {
$person = eval("return $person;");

return "Hello $person!";
});
$extensions = $view->getExtensions();
Expand Down
2 changes: 1 addition & 1 deletion tests/greeting.pug
Original file line number Diff line number Diff line change
@@ -1 +1 @@
| @greet(Bob)
| @greet('Bob')

0 comments on commit 63998c8

Please sign in to comment.