firefly-iii/database/factories/ModelFactory.php

22 lines
454 B
PHP
Raw Normal View History

<?php
2016-01-24 09:25:03 -06:00
$factory->define(
FireflyIII\User::class, function (Faker\Generator $faker) {
return [
2016-01-24 09:25:03 -06:00
'name' => $faker->name,
'email' => $faker->email,
'password' => bcrypt(str_random(10)),
'remember_token' => str_random(10),
];
2016-01-24 09:25:03 -06:00
}
);
$factory->define(
FireflyIII\Models\TransactionType::class, function (Faker\Generator $faker) {
return [
'type' => $faker->name,
];
}
);