From 1ee9003f1f50ebf1963fb5250b3e8ddfe7ece0b8 Mon Sep 17 00:00:00 2001 From: luanfreitasdev Date: Wed, 9 Oct 2024 10:58:40 -0300 Subject: [PATCH] add tag a to route macro --- src/Providers/Macros.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Providers/Macros.php b/src/Providers/Macros.php index 096490b0..8cd17814 100644 --- a/src/Providers/Macros.php +++ b/src/Providers/Macros.php @@ -198,6 +198,8 @@ public static function actions(): void }); Button::macro('route', function (string $route, array $params, string $target = '_self') { + $this->tag('a'); + $this->attributes([ 'href' => route($route, $params), 'target' => $target,