- Timestamp:
- 10/13/21 15:44:57 (3 years ago)
- Branches:
- develop, master
- Children:
- 120759b
- Parents:
- 194a359
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
routes/web.php
r194a359 r24a616f 53 53 54 54 // Users 55 Route::group(['middleware' => 'permission: access_all_users'], function () {55 Route::group(['middleware' => 'permission:manage_all_users'], function () { 56 56 Route::get("/users", "Dashboard\UsersController@index")->name("dashboard.users.index"); 57 57 Route::patch("/users/{id}/block", "Dashboard\UsersController@block")->name("dashboard.users.block"); … … 69 69 70 70 // Departments 71 Route::group(['middleware' => 'permission: access_all_departments'], function () {71 Route::group(['middleware' => 'permission:manage_all_departments'], function () { 72 72 Route::get("/departments", "Dashboard\departmentsController@index")->name("dashboard.departments.index"); 73 73 Route::get("/departments/create", "Dashboard\departmentsController@create")->name("dashboard.departments.create"); … … 78 78 }); 79 79 80 // Documents 81 Route::get("/documents", "Dashboard\DocumentsController@index")->name("dashboard.documents.index"); 82 Route::get("/documents/create", "Dashboard\DocumentsController@create")->name("dashboard.documents.create"); 83 Route::post("/documents/store", "Dashboard\DocumentsController@store")->name("dashboard.documents.store"); 84 Route::get("/documents/{id}/edit", "Dashboard\DocumentsController@editShow")->name("dashboard.documents.editShow"); 85 Route::get("/documents/{id}/list", "Dashboard\DocumentsController@getDocumentsInDepartment")->name("dashboard.documents.getDocumentsInDepartment"); 86 Route::patch("/documents/{id}/edit", "Dashboard\DocumentsController@edit")->name("dashboard.documents.edit"); 87 Route::patch("/documents/{id}/block", "Dashboard\DocumentsController@block")->name("dashboard.documents.block"); 88 Route::patch("/documents/{id}/unblock", "Dashboard\DocumentsController@unblock")->name("dashboard.documents.unblock"); 89 Route::patch("/documents/{id}/confirm", "Dashboard\DocumentsController@confirm")->name("dashboard.documents.confirm"); 90 Route::delete("/documents/{id}/destroy", "Dashboard\DocumentsController@destroy")->name("dashboard.documents.destroy"); 91 80 92 });
Note:
See TracChangeset
for help on using the changeset viewer.