group(function () { Route::get('asset/report/{report}', 'AssetReportController'); Route::patch('asset/actions/{action}', 'AssetActionsController'); Route::patch('asset/action/{asset}/{action}', 'AssetActionController'); Route::patch('asset/workflow/{asset}/{transition}', 'AssetWorkflowController'); Route::resource('asset', 'AssetResourceController'); }); // Guard routes for user Route::prefix('{guard}/asset')->group(function () { Route::resource('user', 'UserResourceController'); }); // Public routes for asset Route::get('assets/', 'AssetPublicController@index'); Route::get('asset/{slug?}', 'AssetPublicController@show');