group(function () { Route::resource('customer', 'CustomerResourceController'); }); // Guard routes for website Route::prefix('{guard}/customer')->group(function () { Route::resource('website', 'WebsiteResourceController'); }); // Public routes for customer Route::get('customers/', 'CustomerPublicController@index'); Route::get('customer/{slug?}', 'CustomerPublicController@show');