group(function () { Route::resource('user', 'UserResourceController'); }); // Guard routes for client Route::prefix('{guard}/user')->group(function () { Route::resource('client', 'ClientResourceController'); }); // Public routes for user Route::get('users/', 'UserPublicController@index'); Route::get('user/{slug?}', 'UserPublicController@show');