database/seeders/UserSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $user = User::create([
            'name' => 'Felipe Contreras Pacheco',
            'email' => 'pipx2012@gmail.com',
            'password' => bcrypt('12345678')
        ]);
        $user->assignRole('admin');
        User::factory(99)->create();
    }
public function run ( ) { $ user = User :: create ( [ 'name' => 'Felipe Contreras Pacheco' , 'email' => 'pipx2012@gmail.com' , 'password' => bcrypt ( '12345678' ) ] ) ; $ user -> assignRole ( 'admin' ) ; User :: factory ( 99 ) -> create ( ) ; }
Run the database seeds.
Run the database seeds .