group(function () { Route::resource('niche', 'NicheResourceController'); }); // Guard routes for niche_user Route::prefix('{guard}/niche')->group(function () { Route::resource('niche_user', 'NicheUserResourceController'); }); // Guard routes for niche_location Route::prefix('{guard}/niche')->group(function () { Route::resource('niche_location', 'NicheLocationResourceController'); }); // Public routes for niche Route::get('niches/', 'NichePublicController@index'); Route::get('niche/{slug?}', 'NichePublicController@show');