source: database/seeds/PermissionsTableSeeder.php

Last change on this file was d25ba66, checked in by Özkan İliyaz <iliyaz_96@…>, 4 years ago

ADD post confirmation with multiple phases, notification after succesfully password creation

  • Property mode set to 100644
File size: 1.8 KB
RevLine 
[0924b6c]1<?php
2
3use Illuminate\Database\Seeder;
4
5class 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([
[d25ba66]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
[0924b6c]37 ]);
38 }
39}
Note: See TracBrowser for help on using the repository browser.