database/seeds/SeedRoles.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')->delete();
        Role::create([
            'name'   => 'super administrador'
        ]);
        Role::create([
            'name'   => 'supervisor'
        ]);
        Role::create([
            'name'   => 'analista'
        ]);
        Role::create([
            'name'   => 'usuario'
        ]);
    }
public function run ( ) { DB :: table ( 'roles' ) -> delete ( ) ; Role :: create ( [ 'name' => 'super administrador' ] ) ; Role :: create ( [ 'name' => 'supervisor' ] ) ; Role :: create ( [ 'name' => 'analista' ] ) ; Role :: create ( [ 'name' => 'usuario' ] ) ; }
Run the database seeds.
Run the database seeds .