Skip to content

Commit

Permalink
Merge pull request #355 from iurigustavo/feature/add-measure-blade-di…
Browse files Browse the repository at this point in the history
…rective

Add 'measure' directive to RayServiceProvider
  • Loading branch information
freekmurze authored Jul 3, 2024
2 parents 776d2c0 + defd696 commit f57b294
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/RayServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,9 @@ protected function registerBladeDirectives(): self
Blade::directive('ray', function ($expression) {
return "<?php ray($expression); ?>";
});
Blade::directive('measure', function () {
return '<?php ray()->measure() ?>';
});
});

return $this;
Expand Down

0 comments on commit f57b294

Please sign in to comment.