From b6ec23642438d8a36409e2d68fd4a0556865d4a2 Mon Sep 17 00:00:00 2001 From: Subhadip Ghorui Date: Tue, 13 Oct 2020 20:07:09 +0530 Subject: [PATCH] Add Auth middleware to routes --- routes/web.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/web.php b/routes/web.php index 57394f6..0544bbb 100644 --- a/routes/web.php +++ b/routes/web.php @@ -31,8 +31,8 @@ Route::get('/category/{slug}', 'HomeController@categoryPost')->name('category.post'); Route::get('/search', 'HomeController@search')->name('search'); Route::get('/tag/{name}', 'HomeController@tagPosts')->name('tag.posts'); -Route::post('/comment/{post}', 'CommentController@store')->name('comment.store'); -Route::post('/comment-reply/{comment}', 'CommentReplyController@store')->name('reply.store'); +Route::post('/comment/{post}', 'CommentController@store')->name('comment.store')->middleware('auth'); +Route::post('/comment-reply/{comment}', 'CommentReplyController@store')->name('reply.store')->middleware('auth'); // Admin ////////////////////////////////////////////////////////////////////////