group(['prefix' => '', 'middleware' => 'auth'], function () use ($router) { // Insurances routes $router->group(['prefix' => '/insurances'], function () use ($router) { $router->get('countries/{countryId}', 'InsuranceController@getInsurancesByCountryId'); $router->post('bonus-amount', 'InsuranceController@calculateBonusAmount'); $router->post('subscribe', 'InsuranceController@subscribe'); }); });