firefly-iii/database/factories/ModelFactory.php
2016-01-28 21:22:26 +01:00

22 lines
454 B
PHP

<?php
$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,
];
}
);