group(function () { Route::get('chat/report/{report}', 'ChatReportController'); Route::post('chat/exim/{exim}', 'ChatEximController'); Route::patch('chat/actions/{action}', 'ChatActionsController'); Route::patch('chat/action/{chat}/{action}', 'ChatActionController'); Route::patch('chat/workflow/{chat}/{transition}', 'ChatWorkflowController'); Route::resource('chat', 'ChatResourceController'); }); // Public routes for chat Route::get('chats/', 'ChatPublicController@index'); Route::get('chat/{slug?}', 'ChatPublicController@show');