database/seeders/RolSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        DB::table('rols')->insert([
            'nombre_rol' => 'Admin',
            'created_at'=> now(),
            'updated_at' => now(),                        
        ]);           
        DB::table('rols')->insert([
            'nombre_rol' => 'Usuario',                        
            'created_at'=> now(),
            'updated_at' => now(),
        ]);
    }
public function run ( ) { DB :: table ( 'rols' ) -> insert ( [ 'nombre_rol' => 'Admin' , 'created_at' => now ( ) , 'updated_at' => now ( ) , ] ) ; DB :: table ( 'rols' ) -> insert ( [ 'nombre_rol' => 'Usuario' , 'created_at' => now ( ) , 'updated_at' => now ( ) , ] ) ; }
Run the database seeds.
Run the database seeds .