firefly-iii/database/factories/ModelFactory.php
2016-05-20 08:57:45 +02:00

25 lines
483 B
PHP

<?php
declare(strict_types = 1);
$factory->define(
FireflyIII\User::class, function (Faker\Generator $faker) {
return [
'name' => $faker->name,
'email' => $faker->email,
'password' => bcrypt(str_random(10)),
'remember_token' => str_random(10),
];
}
);
$factory->define(
FireflyIII\Models\TransactionType::class, function (Faker\Generator $faker) {
return [
'type' => $faker->name,
];
}
);