Skip to content

Commit

Permalink
Modified friendlist route and add link to dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Saodus committed Oct 25, 2024
1 parent eaed730 commit d31c520
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions resources/views/layouts/navigation.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@

<!-- Navigation and Settings Dropdown -->
<div class="flex items-center space-x-4">
<div>
<x-nav-link :href="route('friends.index')" :active="request()->routeIs('friends.index')">
Friendlist
</x-nav-link>
</div>
<!-- Settings Dropdown -->
<div>
<x-dropdown align="right" width="48">
Expand Down
3 changes: 2 additions & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@
return view('dashboard');
})->middleware(['auth', 'verified'])->name('dashboard');

Route::get('/dashboard/friends', [FriendshipsController::class, 'index'])->name('friends.index');


Route::middleware('auth')->group(function () {
Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit');
Route::patch('/profile', [ProfileController::class, 'update'])->name('profile.update');
Route::delete('/profile', [ProfileController::class, 'destroy'])->name('profile.destroy');
Route::get('/friends', [FriendshipsController::class, 'index'])->name('friends.index');

});


Expand Down

0 comments on commit d31c520

Please sign in to comment.