get('/', 'PostsController@index') ->name('home'); $this->post('/posts', 'PostsController@store'); $this->get('/posts/create', 'PostsController@create'); $this->get('/posts/{post}', 'PostsController@show'); $this->post('/posts/{post}/comments', 'CommentsController@store'); $this->get('register', 'RegistrationController@create'); $this->post('register', 'RegistrationController@store'); $this->get('login', 'SessionsController@create'); $this->post('login', 'SessionsController@store'); $this->get('logout', 'SessionsController@destroy');