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'=>'admin',
                   'email'=>'pltruenine@163.com',
                   'password'=>Hash::make('123456'),
                   'created_at'=>now()->toDate(),
                   'updated_at'=>now()->toDate(),
       ]);
    }
public function run ( ) { DB :: table ( 'users' ) -> insert ( [ 'name' => 'admin' , 'email' => 'pltruenine@163.com' , 'password' => Hash :: make ( '123456' ) , 'created_at' => now ( ) -> toDate ( ) , 'updated_at' => now ( ) -> toDate ( ) , ] ) ; }
Run the database seeds.
Run the database seeds .