database/seeds/RolesTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        DB::table('roles')->insert(
            ['role' => 'Root User', 'permission' => 'root']
        );
        DB::table('roles')->insert([
            ['role' => 'Admin', 'permission' => 'admin']
        ]);
        DB::table('roles')->insert([
            ['role' => 'Editor', 'permission' => 'editor']
        ]);
        DB::table('roles')->insert([
            ['role' => 'Modifier', 'permission' => 'modifier']
        ]);
        DB::table('roles')->insert([
            ['role' => 'Author', 'permission' => 'euthor']
        ]);
        DB::table('roles')->insert([
            ['role' => 'User', 'permission' => 'user']
        ]);
    }
public function run ( ) { DB :: table ( 'roles' ) -> insert ( [ 'role' => 'Root User' , 'permission' => 'root' ] ) ; DB :: table ( 'roles' ) -> insert ( [ [ 'role' => 'Admin' , 'permission' => 'admin' ] ] ) ; DB :: table ( 'roles' ) -> insert ( [ [ 'role' => 'Editor' , 'permission' => 'editor' ] ] ) ; DB :: table ( 'roles' ) -> insert ( [ [ 'role' => 'Modifier' , 'permission' => 'modifier' ] ] ) ; DB :: table ( 'roles' ) -> insert ( [ [ 'role' => 'Author' , 'permission' => 'euthor' ] ] ) ; DB :: table ( 'roles' ) -> insert ( [ [ 'role' => 'User' , 'permission' => 'user' ] ] ) ; }
Run the database seeds.
Run the database seeds .