Skip to content

Commit

Permalink
Use url helpers (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
indykoning authored Jul 4, 2023
1 parent dfba9c0 commit ddb3e0b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"illuminate/database": "^9.0",
"illuminate/support": "^9.0",
"illuminate/view": "^9.0",
"rapidez/account": ">=0.13.3",
"rapidez/core": "~0.77"
},
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion resources/views/wishlist/button.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
</div>
</wishlist>

<x-rapidez::button v-else href="/login">
<x-rapidez::button v-else :href="route('account.login')">
<x-heroicon-o-heart class="h-5 w-5" />
</x-rapidez::button>
2 changes: 1 addition & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

Route::middleware('web')->group(function () {
Route::view('account/wishlist', 'rapidez::wishlist.account.wishlist');
Route::view('account/wishlist', 'rapidez::wishlist.account.wishlist')->name('account.wishlist');
});

0 comments on commit ddb3e0b

Please sign in to comment.