group(function () { Route::patch('location/actions/{action}', 'LocationActionsController'); Route::patch('location/action/{location}/{action}', 'LocationActionController'); Route::resource('location', 'LocationResourceController'); }); // Guard routes for building Route::prefix('{guard}/location')->group(function () { Route::patch('building/actions/{action}', 'BuildingActionsController'); Route::patch('building/action/{building}/{action}', 'BuildingActionController'); Route::resource('building', 'BuildingResourceController'); }); // Public routes for location Route::get('locations/', 'LocationPublicController@index'); Route::get('location/{slug?}', 'LocationPublicController@show');