Created
July 11, 2018 16:16
-
-
Save calebporzio/f78dfd93b1b1beaff338eb0ef74b4478 to your computer and use it in GitHub Desktop.
@route blade directive
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Blade::directive('route', function ($expression) { | |
return '<?php route(' . $expression . '); ?>'; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Haven't tested it, but aren't you missing echoing (printing) the content?