Changeset d25ba66 for database/seeds
- Timestamp:
- 02/24/21 17:04:35 (4 years ago)
- Branches:
- master
- Children:
- 0c07a90
- Parents:
- 1f059b0
- Location:
- database/seeds
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
database/seeds/PermissionsTableSeeder.php
r1f059b0 rd25ba66 13 13 { 14 14 DB::table('permissions')->insert([ 15 ["name" => "create_user"], // Create new user 16 ["name" => "access_all_users"], // Access to all users to manage 17 ["name" => "create_post"], // Create new post 18 ["name" => "confirm_post"], // Confirm new post 19 ["name" => "access_all_posts"], // Access to all posts to manage 20 ["name" => "publish_all_posts"], // Publish and review all posts 21 ["name" => "publish_post"], // Publish your posts only 22 ["name" => "edit_all_posts"], // Edit all posts 23 ["name" => "edit_post"], // Edit your posts only 24 ["name" => "delete_all_posts"], // Delete all posts 25 ["name" => "delete_post"], // Delete your posts only 26 ["name" => "approve_all_comments"], // Approve comments of your posts and other users posts 27 ["name" => "approve_comment"], // Approve your post comments 28 ["name" => "access_all_categories"], // Access to all categories to manage 15 ["name" => "create_user"], // Create new user 16 ["name" => "access_all_users"], // Access to all users to manage 17 ["name" => "create_post"], // Create new post 18 ["name" => "confirm_post"], // Confirm new post 19 ["name" => "access_all_posts"], // Access to all posts to manage 20 ["name" => "publish_all_posts"], // Publish and review all posts 21 ["name" => "publish_post"], // Publish your posts only 22 ["name" => "edit_all_posts"], // Edit all posts 23 ["name" => "edit_post"], // Edit your posts only 24 ["name" => "delete_all_posts"], // Delete all posts 25 ["name" => "delete_post"], // Delete your posts only 26 ["name" => "approve_all_comments"], // Approve comments of your posts and other users posts 27 ["name" => "approve_comment"], // Approve your post comments 28 ["name" => "access_all_categories"], // Access to all categories to manage 29 ["name" => "access_all_phases"], // Access to all phases 30 ["name" => "create_phase"], // Create new phase 31 ["name" => "edit_phase"], // Edit phase 32 ["name" => "delete_phase"], // Delete phase 33 ["name" => "access_all_post_securities"], // Access to all post securities 34 ["name" => "create_post_securities"], // Create new post security 35 ["name" => "edit_post_securities"], // Edit post security 36 ["name" => "delete_post_securities"], // Delete post security 29 37 ]); 30 38 } -
database/seeds/RolesPermissionsTableSeeder.php
r1f059b0 rd25ba66 28 28 ["role_id" => 1, "permission_id" => 13], 29 29 ["role_id" => 1, "permission_id" => 14], 30 30 ["role_id" => 1, "permission_id" => 15], 31 ["role_id" => 1, "permission_id" => 16], 32 ["role_id" => 1, "permission_id" => 17], 33 ["role_id" => 1, "permission_id" => 18], 34 ["role_id" => 1, "permission_id" => 19], 35 ["role_id" => 1, "permission_id" => 20], 36 ["role_id" => 1, "permission_id" => 21], 37 ["role_id" => 1, "permission_id" => 22], 38 31 39 // Editor 32 40 ["role_id" => 2, "permission_id" => 3],
Note:
See TracChangeset
for help on using the changeset viewer.