group(function () { Route::resource('service_kit', 'ServiceKitResourceController'); }); // Guard routes for accessory Route::prefix('{guard}/shop')->group(function () { Route::resource('accessory', 'AccessoryResourceController'); }); // Guard routes for spare_part Route::prefix('{guard}/shop')->group(function () { Route::get('spare_part/report/{report}', 'SparePartReportController'); Route::post('spare_part/exim/{exim}', 'SparePartEximController'); Route::patch('spare_part/actions/{action}', 'SparePartActionsController'); Route::patch('spare_part/action/{spare_part}/{action}', 'SparePartActionController'); Route::patch('spare_part/workflow/{spare_part}/{transition}', 'SparePartWorkflowController'); Route::resource('spare_part', 'SparePartResourceController'); }); // Public routes for shop Route::get('shops/', 'ShopPublicController@index'); Route::get('shop/{slug?}', 'ShopPublicController@show');