From defd696a48c7b61b7d6ffd1553b1d0f33cae07f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=BAri=20Gustavo?= Date: Tue, 2 Jul 2024 12:55:45 -0400 Subject: [PATCH] Add 'measure' directive to RayServiceProvider A new Blade directive, 'measure', has been added to the RayServiceProvider.php file. This directive calls ray()->measure() method in the Laravel Blade templates. --- src/RayServiceProvider.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/RayServiceProvider.php b/src/RayServiceProvider.php index 77e1d8b..4c7155a 100644 --- a/src/RayServiceProvider.php +++ b/src/RayServiceProvider.php @@ -234,6 +234,9 @@ protected function registerBladeDirectives(): self Blade::directive('ray', function ($expression) { return ""; }); + Blade::directive('measure', function () { + return 'measure() ?>'; + }); }); return $this;