From 35d2a76358d110c9dd32734fbdb3c553bff71a02 Mon Sep 17 00:00:00 2001 From: Liam Hammett Date: Sun, 27 Dec 2020 20:36:32 +0000 Subject: [PATCH] Fix first example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2821196..deedb9e 100755 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ An easier way to define custom Blade directives. When creating new custom Blade directives using the `Blade::directive(…)` method, the only parameter made available to manipulate is the expression passed through from the .blade.php file as a raw string. It seems to be rare that developers actually parse the contents of the expression itself within the directive, opting instead to pass the entire expression as arguments to a helper function or a method on another class. For example: ```php -BladeHelper::directive('uppercase', function($expression) { +Illuminate\Support\Facades\Blade::directive('uppercase', function($expression) { return ""; }); ```