Projekt

Obecné

Profil

« Předchozí | Další » 

Revize e765fd91

Přidáno uživatelem Marek Lovčí před téměř 5 roky(ů)

Relace Metadata|User.
Issue #7847 @0.25h

Zobrazit rozdíly:

database/factories/UserFactory.php
1 1
<?php
2 2

  
3
/** @var \Illuminate\Database\Eloquent\Factory $factory */
3
/** @var Factory $factory */
4 4

  
5 5
use App\User;
6 6
use Faker\Generator as Faker;
7
use Illuminate\Database\Eloquent\Factory;
7 8
use Illuminate\Support\Str;
8 9

  
9 10
/*
......
22 23
        'name' => $faker->name,
23 24
        'email' => $faker->unique()->safeEmail,
24 25
        'email_verified_at' => now(),
25
        'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
26
        'password' => bcrypt($faker->unique()->password),
26 27
        'remember_token' => Str::random(10),
28
        'created_at' => now(),
29
        'updated_at' => now(),
27 30
    ];
28 31
});

Také k dispozici: Unified diff