Route::get('comments/{id}/edit', ['as' => 'comments.edit', 'uses' => function ($id) { return Comments::edit($id); }]); Route::put('comments/{id}/update', ['as' => 'comments.update', 'middleware' => 'csrf', 'uses' => function ($id) { return Comments::update($id); }]); Route::delete('comments/{id}/delete', ['as' => 'comments.delete', 'middleware' => 'csrf', 'uses' => function ($id) { return Comments::delete($id); }]); /* * Ratings */ Route::post('ratings/store', ['as' => 'ratings.store', 'middleware' => 'csrf', 'uses' => function () { $foreignType = Input::get('foreigntype'); $foreignId = Input::get('foreignid'); return Ratings::store($foreignType, $foreignId); }]); /* * Captcha */ Route::get('captcha', ['as' => 'captcha', 'uses' => function () { Captcha::make(); $response = Response::make('', 200); $response->header('Content-Type', 'image/jpg'); return $response; }]); /* * Installation */ Route::get('install', 'InstallController@index'); Route::post('install', 'InstallController@index');