database/seeds/UserSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        DB::table('users')->insert([
            'name' => 'Ivan',
            'email'=> 'lebuya@gmail.com',
            'password'=> Hash::make('lebuyaadmin'),
            'rol_id' => 1,
            'remember_token'=> Str::random(60), 
            '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 ( 'users' ) -> insert ( [ 'name' => 'Ivan' , 'email' => 'lebuya@gmail.com' , 'password' => Hash :: make ( 'lebuyaadmin' ) , 'rol_id' => 1 , 'remember_token' => Str :: random ( 60 ) , '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 .
//