1
0
mirror of https://github.com/devfake/flox.git synced 2024-11-15 14:42:31 +01:00
flox/backend/database/factories/ModelFactory.php
devfake c901232f16 start file parser
migrations

swap sqlite file with memory

set and update alternative titles

simplify alternative titles

change request limit handling

move limitRemaining to method
2017-02-13 21:17:25 +01:00

22 lines
492 B
PHP

<?php
$factory->define(App\User::class, function(Faker\Generator $faker) {
static $password;
return [
'username' => $faker->name,
'password' => $password ?: $password = bcrypt('secret'),
'remember_token' => str_random(10),
];
});
$factory->define(App\Item::class, function(Faker\Generator $faker) {
return [
'poster' => '',
'rating' => 1,
'genre' => '',
'released' => time(),
'created_at' => time(),
];
});