database/seeders/RolesSeeder.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')->truncate();
        DB::table('roles')->insert([
            ['rol' => 'admin'],
            ['rol' => 'user']
        ]);
    }
public function run ( ) { DB :: table ( 'roles' ) -> truncate ( ) ; DB :: table ( 'roles' ) -> insert ( [ [ 'rol' => 'admin' ] , [ 'rol' => 'user' ] ] ) ; }
Run the database seeds.
Run the database seeds .