group(function () { Route::resource('order', 'OrderResourceController'); }); // Guard routes for order_items Route::prefix('{guard}/order')->group(function () { Route::get('order_items/report/{report}', 'OrderItemsReportController'); Route::post('order_items/exim/{exim}', 'OrderItemsEximController'); Route::patch('order_items/actions/{action}', 'OrderItemsActionsController'); Route::patch('order_items/action/{order_items}/{action}', 'OrderItemsActionController'); Route::patch('order_items/workflow/{order_items}/{transition}', 'OrderItemsWorkflowController'); Route::resource('order_items', 'OrderItemsResourceController'); }); // Public routes for order Route::get('orders/', 'OrderPublicController@index'); Route::get('order/{slug?}', 'OrderPublicController@show');