Changeset 24a616f for routes


Ignore:
Timestamp:
10/13/21 15:44:57 (3 years ago)
Author:
Berat Kjufliju <kufliju@…>
Branches:
develop, master
Children:
120759b
Parents:
194a359
Message:

added documents crud, added last_seen_to_user, edited views

File:
1 edited

Legend:

Unmodified
Added
Removed
  • routes/web.php

    r194a359 r24a616f  
    5353
    5454    // Users
    55     Route::group(['middleware' => 'permission:access_all_users'], function () {
     55    Route::group(['middleware' => 'permission:manage_all_users'], function () {
    5656        Route::get("/users", "Dashboard\UsersController@index")->name("dashboard.users.index");
    5757        Route::patch("/users/{id}/block", "Dashboard\UsersController@block")->name("dashboard.users.block");
     
    6969
    7070    // Departments
    71     Route::group(['middleware' => 'permission:access_all_departments'], function () {
     71    Route::group(['middleware' => 'permission:manage_all_departments'], function () {
    7272        Route::get("/departments", "Dashboard\departmentsController@index")->name("dashboard.departments.index");
    7373        Route::get("/departments/create", "Dashboard\departmentsController@create")->name("dashboard.departments.create");
     
    7878    });
    7979
     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
    8092});
Note: See TracChangeset for help on using the changeset viewer.