Changeset c6b84df for database/seeders


Ignore:
Timestamp:
10/21/21 23:45:59 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
develop, master
Children:
4b7e2d3
Parents:
6b95845
Message:

added fileTypes controller, notifications, excel export, edited views

Location:
database/seeders
Files:
2 added
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • database/seeders/DatabaseSeeder.php

    r6b95845 rc6b84df  
    1919        $this->call(UsersTableSeeder::class);
    2020        $this->call(DepartmentsTableSeeder::class);
    21         //$this->call(DocumentsTableSeeder::class);
     21        $this->call(FileTypeSeeder::class);
     22        $this->call(FoldersTableSeeder::class);
    2223    }
    2324}
  • database/seeders/DepartmentsTableSeeder.php

    r6b95845 rc6b84df  
    1616    public function run()
    1717    {
    18         Department::factory()->count(8)->create();
     18        Department::factory()->count(15)->create();
    1919    }
    2020}
  • database/seeders/PermissionsTableSeeder.php

    r6b95845 rc6b84df  
    2020            ["name" => "manage_all_users"],             // Access all users to manage
    2121            ["name" => "manage_all_departments"],       // Access all departments to manage
    22             ["name" => "manage_all_documents"],         // Access all documents to manage
     22            ["name" => "manage_all_folders"],       // Access all folders to manage
    2323            ["name" => "view_all_departments"],         // Access all departments to view
    24             ["name" => "view_all_documents"],       // Access all documents to view
    25             ["name" => "edit_all_documents"],           // Edit all documents
    26             ["name" => "edit_document"],                    // Edit your document/s
    27             ["name" => "delete_all_documents"],         // Delete all document/s
    28             ["name" => "delete_document"],              // Delete your document/s
    29             ["name" => "manage_file_types"],    // Access all file_types to manage
     24            ["name" => "view_all_folders"],         // Access all folders to view
     25            ["name" => "edit_all_folders"],             // Edit all folders
     26            ["name" => "edit_folder"],                  // Edit your folder/s
     27            ["name" => "delete_all_folders"],       // Delete all folder/s
     28            ["name" => "delete_folder"],                // Delete your folder/s
     29            ["name" => "manage_all_files"],         // Access all files
     30            ["name" => "manage_file_types"],        // Access file types
    3031        ]);
    3132    }
  • database/seeders/RolesPermissionsTableSeeder.php

    r6b95845 rc6b84df  
    2727            ["role_id" => 1, "permission_id" => 10],
    2828            ["role_id" => 1, "permission_id" => 11],
     29            ["role_id" => 1, "permission_id" => 12],
    2930
    3031            // Referent
  • database/seeders/RolesTableSeeder.php

    r6b95845 rc6b84df  
    1515    {
    1616        \DB::table('roles')->insert([
    17             ["name" => "Admin"], // Have access to all users(managing users), departments, documents etc
    18             ["name" => "Referent"], // Have access to manage and view all departments, documents etc
    19             ["name" => "Viewer"], // Have access to view all departments, documents etc
     17            ["name" => "Admin"], // Have access to all users(managing users), departments, folders etc
     18            ["name" => "Referent"], // Have access to manage and view all departments, folders etc
     19            ["name" => "Viewer"], // Have access to view all departments, folders etc
    2020        ]);
    2121    }
Note: See TracChangeset for help on using the changeset viewer.