<?php

use Illuminate\Database\Seeder;

class PermissionsTableSeeder extends Seeder
{
	/**
	 * Run the database seeds.
	 *
	 * @return void
	 */
	public function run()
	{
		DB::table('permissions')->insert([
			["name" => "create_user"], 				// Create new user
			["name" => "access_all_users"], 		// Access to all users to manage
			["name" => "create_post"], 				// Create new post
			["name" => "confirm_post"], 			// Confirm new post
			["name" => "access_all_posts"], 		// Access to all posts to manage
			["name" => "publish_all_posts"], 		// Publish and review all posts
			["name" => "publish_post"], 			// Publish your posts only
			["name" => "edit_all_posts"], 			// Edit all posts
			["name" => "edit_post"], 				// Edit your posts only
			["name" => "delete_all_posts"], 		// Delete all posts
			["name" => "delete_post"], 				// Delete your posts only
			["name" => "approve_all_comments"], 	// Approve comments of your posts and other users posts
			["name" => "approve_comment"], 			// Approve your post comments
			["name" => "access_all_categories"],	// Access to all categories to manage
		]);
	}
}
