source: database/seeds/RolesTableSeeder.php@ 1f059b0

Last change on this file since 1f059b0 was 0924b6c, checked in by Özkan İliyaz <iliyaz_96@…>, 4 years ago

initial commit

  • Property mode set to 100644
File size: 528 bytes
RevLine 
[0924b6c]1<?php
2
3use Illuminate\Database\Seeder;
4
5class RolesTableSeeder extends Seeder
6{
7 /**
8 * Run the database seeds.
9 *
10 * @return void
11 */
12 public function run()
13 {
14 DB::table('roles')->insert([
15 ["name" => "admin"], // Have access to all users(managing users), posts, comments, etc
16 ["name" => "editor"], // Have access to all posts, comments, etc
17 ["name" => "author"], // Have access to only their own posts and can publish
18 ["name" => "contributor"], // Have access to only their own posts can't publish
19 ]);
20 }
21}
Note: See TracBrowser for help on using the repository browser.