'/admin/file_repository'], function () { Route::put('news/workflow/{notifications}/{step}', 'NotificationsAdminController@putWorkflow'); Route::resource('notifications', 'NotificationsAdminController'); }); // User routes for notifications Route::group(['prefix' => '/user/file_repository'], function () { Route::resource('notifications', 'NotificationsUserController'); }); // Public routes for notifications Route::group(['prefix' => '/file_repositories'], function () { Route::get('news/workflow/{notifications}/{step}/{user}', 'NotificationsController@getWorkflow'); Route::get('/', 'NotificationsPublicController@index'); Route::get('/{slug?}', 'NotificationsPublicController@show'); }); // Admin routes for attachments Route::group(['prefix' => '/admin/file_repository'], function () { Route::put('news/workflow/{attachments}/{step}', 'AttachmentsAdminController@putWorkflow'); Route::resource('attachments', 'AttachmentsAdminController'); }); // User routes for attachments Route::group(['prefix' => '/user/file_repository'], function () { Route::resource('attachments', 'AttachmentsUserController'); }); // Public routes for attachments Route::group(['prefix' => '/file_repositories'], function () { Route::get('news/workflow/{attachments}/{step}/{user}', 'AttachmentsController@getWorkflow'); Route::get('/', 'AttachmentsPublicController@index'); Route::get('/{slug?}', 'AttachmentsPublicController@show'); });