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()
    {
        factory(User::class)->create([
            'name'          => 'John Doe',
            'email'         => 'john@hey.com',
            'affiliate_tag' => 'john',
        ]);
        factory(User::class, 10)->create();
    }
public function run ( ) { factory ( User :: class ) -> create ( [ 'name' => 'John Doe' , 'email' => 'john@hey.com' , 'affiliate_tag' => 'john' , ] ) ; factory ( User :: class , 10 ) -> create ( ) ; }
Run the database seeds.
Run the database seeds .