database/seeders/UserSeeder.php
/**
     * Run the database seeders.
     *
     * @return void
     */
Run the database seeders.
@return void
Run the database seeders . @return void
public function run()
    {
        DB::table('users')->insert([
            'name' => 'admin',
            'email' => 'admin@mail.com',
            'password' => Hash::make('admin'),
        ]);
        DB::table('users')->insert([
            'name' => 'John Snow',
            'email' => 'JSnow@mail.com',
            'password' => Hash::make('password'),
        ]);
        DB::table('users')->insert([
            'name' => 'Donald Trump',
            'email' => 'DTrump@mail.com',
            'password' => Hash::make('password'),
        ]);
    }
public function run ( ) { DB :: table ( 'users' ) -> insert ( [ 'name' => 'admin' , 'email' => 'admin@mail.com' , 'password' => Hash :: make ( 'admin' ) , ] ) ; DB :: table ( 'users' ) -> insert ( [ 'name' => 'John Snow' , 'email' => 'JSnow@mail.com' , 'password' => Hash :: make ( 'password' ) , ] ) ; DB :: table ( 'users' ) -> insert ( [ 'name' => 'Donald Trump' , 'email' => 'DTrump@mail.com' , 'password' => Hash :: make ( 'password' ) , ] ) ; }
Run the database seeders.
Run the database seeders .