group(function () { Route::resource('user', 'UserResourceController'); }); // Guard routes for chat Route::prefix('{guard}/whatsapp')->group(function () { Route::resource('chat', 'ChatResourceController'); }); // Public routes for whatsapp Route::get('whatsapps/', 'WhatsappPublicController@index'); Route::get('whatsapp/{slug?}', 'WhatsappPublicController@show');