group(function () { Route::patch('product/actions/{action}', 'ProductActionsController'); Route::patch('product/action/{product}/{action}', 'ProductActionController'); Route::resource('product', 'ProductResourceController'); }); // Public routes for product Route::get('products/', 'ProductPublicController@index'); Route::get('product/{slug?}', 'ProductPublicController@show');