database/seeds/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([
             'id' => 1,
            'nombre' => 'Admin',
            'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
            'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
        ]);
    }
public function run ( ) { DB :: table ( 'rols' ) -> insert ( [ 'id' => 1 , 'nombre' => 'Admin' , 'created_at' => Carbon :: now ( ) -> format ( 'Y-m-d H:i:s' ) , 'updated_at' => Carbon :: now ( ) -> format ( 'Y-m-d H:i:s' ) ] ) ; }
Run the database seeds.
Run the database seeds .
//