From d31c5202266796d9039f86d9c26288849d106fc5 Mon Sep 17 00:00:00 2001 From: Jaton David Date: Fri, 25 Oct 2024 13:37:17 +0200 Subject: [PATCH] Modified friendlist route and add link to dashboard --- resources/views/layouts/navigation.blade.php | 5 +++++ routes/web.php | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/resources/views/layouts/navigation.blade.php b/resources/views/layouts/navigation.blade.php index e24a277..be622c7 100644 --- a/resources/views/layouts/navigation.blade.php +++ b/resources/views/layouts/navigation.blade.php @@ -13,6 +13,11 @@
+
+ + Friendlist + +
diff --git a/routes/web.php b/routes/web.php index 6d74893..3011597 100644 --- a/routes/web.php +++ b/routes/web.php @@ -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'); + });