Skip to content

Commit

Permalink
Add Auth middleware to routes
Browse files Browse the repository at this point in the history
  • Loading branch information
subhadipghorui committed Oct 13, 2020
1 parent bf7c5ff commit b6ec236
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit b6ec236

Please sign in to comment.