group(function () { Route::resource('green_tag', 'GreenTagResourceController'); }); // Guard routes for green_tag_segments Route::prefix('{guard}/green_tag')->group(function () { Route::resource('green_tag_segments', 'GreenTagSegmentsResourceController'); }); // Guard routes for green_tag_health_benefits Route::prefix('{guard}/green_tag')->group(function () { Route::resource('green_tag_health_benefits', 'GreenTagHealthBenefitsResourceController'); }); // Guard routes for green_tag_product_health_benefits Route::prefix('{guard}/green_tag')->group(function () { Route::resource('green_tag_product_health_benefits', 'GreenTagProductHealthBenefitsResourceController'); }); // Guard routes for green_tag_product_segments Route::prefix('{guard}/green_tag')->group(function () { Route::resource('green_tag_product_segments', 'GreenTagProductSegmentsResourceController'); }); // Public routes for green_tag Route::get('green_tags/', 'GreenTagPublicController@index'); Route::get('green_tag/{slug?}', 'GreenTagPublicController@show');