Changeset 195c3cf for database


Ignore:
Timestamp:
10/24/21 00:19:36 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
develop, master
Children:
2db8837
Parents:
b375b43
Message:

edited seeders

Location:
database/seeders
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • database/seeders/DatabaseSeeder.php

    rb375b43 r195c3cf  
    1616        $this->call(RolesTableSeeder::class);
    1717        $this->call(PermissionsTableSeeder::class);
    18         //$this->call(RolesPermissionsTableSeeder::class);
     18        $this->call(RolesPermissionsTableSeeder::class);
    1919        $this->call(UsersTableSeeder::class);
    2020        $this->call(DepartmentsTableSeeder::class);
  • database/seeders/PermissionsTableSeeder.php

    rb375b43 r195c3cf  
    1717    {
    1818        \DB::table('permissions')->insert([
    19             ["name" => "create_user"],                          // Create new user
    20             ["name" => "manage_all_users"],             // Access all users to manage
    21             ["name" => "manage_all_departments"],       // Access all departments to manage
    22             ["name" => "manage_all_folders"],       // Access all folders to manage
    23             ["name" => "view_all_departments"],         // Access all departments to view
    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
     19            ["id" => "1", "name" => "create_user"],                             // Create new user
     20            ["id" => "2", "name" => "manage_all_users"],                    // Access all users to manage
     21            ["id" => "3", "name" => "manage_all_departments"],      // Access all departments to manage
     22            ["id" => "4", "name" => "manage_all_folders"],              // Access all folders to manage
     23            ["id" => "5", "name" => "view_all_departments"],        // Access all departments to view
     24            ["id" => "6", "name" => "view_all_folders"],                // Access all folders to view
     25            ["id" => "7", "name" => "edit_all_folders"],                    // Edit all folders
     26            ["id" => "8", "name" => "edit_folder"],                     // Edit your folder/s
     27            ["id" => "9", "name" => "delete_all_folders"],              // Delete all folder/s
     28            ["id" => "10", "name" => "delete_folder"],              // Delete your folder/s
     29            ["id" => "11", "name" => "manage_all_files"],               // Access all files
     30            ["id" => "12", "name" => "manage_file_types"],              // Access file types
    3131        ]);
    3232    }
  • database/seeders/RolesTableSeeder.php

    rb375b43 r195c3cf  
    1515    {
    1616        \DB::table('roles')->insert([
    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
     17            ["id" => "1", "name" => "Admin"], // Have access to all users(managing users), departments, folders etc
     18            ["id" => "2", "name" => "Referent"], // Have access to manage and view all departments, folders etc
     19            ["id" => "3", "name" => "Viewer"], // Have access to view all departments, folders etc
    2020        ]);
    2121    }
Note: See TracChangeset for help on using the changeset viewer.