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 | ]);
|
---|
30 | }
|
---|
31 | }
|
---|