1 | <?php
|
---|
2 |
|
---|
3 | use Illuminate\Database\Seeder;
|
---|
4 |
|
---|
5 | class PermissionsTableSeeder extends Seeder
|
---|
6 | {
|
---|
7 | /**
|
---|
8 | * Run the database seeds.
|
---|
9 | *
|
---|
10 | * @return void
|
---|
11 | */
|
---|
12 | public function run()
|
---|
13 | {
|
---|
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
|
---|
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
|
---|
37 | ]);
|
---|
38 | }
|
---|
39 | }
|
---|