Skip to content

Commit

Permalink
Use url helpers (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
indykoning authored Jul 4, 2023
1 parent cd1579c commit 4c9ed09
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"illuminate/database": "^9.0",
"illuminate/support": "^9.0",
"illuminate/view": "^9.0",
"rapidez/core": "~0.55"
"rapidez/core": "~0.55|^1.0"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion resources/views/level1.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<ul class="flex flex-wrap">
@foreach ($items as $item)
<li class="group">
<a class="block p-3 text-primary font-bold {{ $item->classes }}" href="{{ $item->content }}">
<a class="block p-3 text-primary font-bold {{ $item->classes }}" href="{{ url($item->content) }}">
{{ $item->title }}
</a>
@includeWhen($item->children->count(), 'snowdogmenu::level2', ['items' => $item->children])
Expand Down
2 changes: 1 addition & 1 deletion resources/views/level2.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<ul class="hidden absolute flex bg-white border p-3 z-10 group-hover:flex">
@foreach ($items as $item)
<li class="px-3">
<a class="block text-primary font-bold border-b py-3 mb-3 {{ $item->classes }}" href="{{ $item->content }}">
<a class="block text-primary font-bold border-b py-3 mb-3 {{ $item->classes }}" href="{{ url($item->content) }}">
{{ $item->title }}
</a>
@includeWhen($item->children->count(), 'snowdogmenu::level3', ['items' => $item->children])
Expand Down
2 changes: 1 addition & 1 deletion resources/views/level3.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<ul class="text-sm">
@foreach ($items as $item)
<li>
<a class="inline-block py-1 hover:text-primary {{ $item->classes }}" href="{{ $item->content }}">
<a class="inline-block py-1 hover:text-primary {{ $item->classes }}" href="{{ url($item->content) }}">
{{ $item->title }}
</a>
</li>
Expand Down

0 comments on commit 4c9ed09

Please sign in to comment.