From 8f315d6ffe2b54a0834e3a90ebbc6cd86875a95d Mon Sep 17 00:00:00 2001 From: faissaloux Date: Mon, 29 Nov 2021 11:10:23 +0100 Subject: [PATCH] fix notifications view bug --- routes/web.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index f728cbd04..3d7f91dc9 100644 --- a/routes/web.php +++ b/routes/web.php @@ -20,6 +20,7 @@ use App\Http\Controllers\Settings\ProfileController as ProfileSettingsController; use App\Http\Controllers\SocialImageController; use App\Http\Controllers\SubscriptionController; +use App\Http\Middleware\Authenticate; use Illuminate\Support\Facades\Route; Route::feeds(); @@ -65,7 +66,7 @@ Route::get('user/{username?}', [ProfileController::class, 'show'])->name('profile'); // Notifications -Route::view('notifications', 'users.notifications')->name('notifications'); +Route::view('notifications', 'users.notifications')->name('notifications')->middleware(Authenticate::class); // Settings Route::get('settings', [ProfileSettingsController::class, 'edit'])->name('settings.profile');