'/admin/fabrication'], function () { Route::put('news/workflow/{material}/{step}', 'MaterialAdminController@putWorkflow'); Route::resource('material', 'MaterialAdminController'); }); // User routes for material Route::group(['prefix' => '/user/fabrication'], function () { Route::resource('material', 'MaterialUserController'); }); // Public routes for material Route::group(['prefix' => '/fabrications'], function () { Route::get('news/workflow/{material}/{step}/{user}', 'MaterialController@getWorkflow'); Route::get('/', 'MaterialPublicController@index'); Route::get('/{slug?}', 'MaterialPublicController@show'); }); // Admin routes for product Route::group(['prefix' => '/admin/fabrication'], function () { Route::put('news/workflow/{product}/{step}', 'ProductAdminController@putWorkflow'); Route::resource('product', 'ProductAdminController'); }); // User routes for product Route::group(['prefix' => '/user/fabrication'], function () { Route::resource('product', 'ProductUserController'); }); // Public routes for product Route::group(['prefix' => '/fabrications'], function () { Route::get('news/workflow/{product}/{step}/{user}', 'ProductController@getWorkflow'); Route::get('/', 'ProductPublicController@index'); Route::get('/{slug?}', 'ProductPublicController@show'); });