Skip to content

Commit

Permalink
Add the xray function to show all available variables in a Blade view.
Browse files Browse the repository at this point in the history
  • Loading branch information
timvandijck committed Jul 12, 2024
1 parent d37e2be commit c2bedfd
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 @@ -237,6 +237,9 @@ protected function registerBladeDirectives(): self
Blade::directive('measure', function () {
return '<?php ray()->measure() ?>';
});
Blade::directive('xray', function () {
return '<?php ray($__data)?>';
});
});

return $this;
Expand Down

0 comments on commit c2bedfd

Please sign in to comment.