Skip to content

Commit

Permalink
Merge pull request #14 from pashamesh/blade_directive_default
Browse files Browse the repository at this point in the history
Fixed blade directive second param is mandatory
  • Loading branch information
cuneytsenturk authored Jul 19, 2018
2 parents 711ad4b + 3faa3c7 commit 69d77dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ public function boot()
}

// Register blade directive
Blade::directive('setting', function ($expression, $default) {
return "<?php echo setting($expression, $default); ?>";
Blade::directive('setting', function ($expression) {
return "<?php echo setting($expression); ?>";
});
}

Expand Down

0 comments on commit 69d77dc

Please sign in to comment.