i'm new to laravel, i had installed auth scaffold, here is the route up to now.
Route::group(['middleware' => ['web']], function () {
Route::auth();
Route::get('/home', 'HomeController@index');
Route::get('addthreadhtml', function()
{
return View::make('addThreadForm');
});
Route::post('thread/add', 'ThreadController@addthread');
Route::get('thread/showall', 'ThreadController@showallthread');
});
i want to protect addthreadhtml from non-authenticated user access, if the user don't login, they will be redirected to another view.
How can i do that?