Changeset c6b84df for database/seeders
- Timestamp:
- 10/21/21 23:45:59 (3 years ago)
- Branches:
- develop, master
- Children:
- 4b7e2d3
- Parents:
- 6b95845
- Location:
- database/seeders
- Files:
-
- 2 added
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
database/seeders/DatabaseSeeder.php
r6b95845 rc6b84df 19 19 $this->call(UsersTableSeeder::class); 20 20 $this->call(DepartmentsTableSeeder::class); 21 //$this->call(DocumentsTableSeeder::class); 21 $this->call(FileTypeSeeder::class); 22 $this->call(FoldersTableSeeder::class); 22 23 } 23 24 } -
database/seeders/DepartmentsTableSeeder.php
r6b95845 rc6b84df 16 16 public function run() 17 17 { 18 Department::factory()->count( 8)->create();18 Department::factory()->count(15)->create(); 19 19 } 20 20 } -
database/seeders/PermissionsTableSeeder.php
r6b95845 rc6b84df 20 20 ["name" => "manage_all_users"], // Access all users to manage 21 21 ["name" => "manage_all_departments"], // Access all departments to manage 22 ["name" => "manage_all_ documents"], // Access all documents to manage22 ["name" => "manage_all_folders"], // Access all folders to manage 23 23 ["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 30 31 ]); 31 32 } -
database/seeders/RolesPermissionsTableSeeder.php
r6b95845 rc6b84df 27 27 ["role_id" => 1, "permission_id" => 10], 28 28 ["role_id" => 1, "permission_id" => 11], 29 ["role_id" => 1, "permission_id" => 12], 29 30 30 31 // Referent -
database/seeders/RolesTableSeeder.php
r6b95845 rc6b84df 15 15 { 16 16 \DB::table('roles')->insert([ 17 ["name" => "Admin"], // Have access to all users(managing users), departments, documents etc18 ["name" => "Referent"], // Have access to manage and view all departments, documents etc19 ["name" => "Viewer"], // Have access to view all departments, documents etc17 ["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 20 20 ]); 21 21 }
Note:
See TracChangeset
for help on using the changeset viewer.