mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
67ec85125a
Accessing Faker properties was deprecated in Faker 1.14.
29 lines
825 B
PHP
29 lines
825 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Illuminate\Support\Str;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Model Factories
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here you may define all of your model factories. Model factories give
|
|
| you a convenient way to create models for testing and seeding your
|
|
| database. Just tell the factory how a default model should look.
|
|
|
|
|
*/
|
|
|
|
/* @var \Illuminate\Database\Eloquent\Factory $factory */
|
|
$factory->define(App\User::class, function (Faker\Generator $faker) {
|
|
static $password;
|
|
|
|
return [
|
|
'name' => $faker->name(),
|
|
'email' => $faker->unique()->safeEmail(),
|
|
'password' => $password ?: $password = bcrypt('secret'),
|
|
'remember_token' => Str::random(10),
|
|
];
|
|
});
|