mirror of
https://github.com/devfake/flox.git
synced 2024-11-15 14:42:31 +01:00
c901232f16
migrations swap sqlite file with memory set and update alternative titles simplify alternative titles change request limit handling move limitRemaining to method
22 lines
492 B
PHP
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(),
|
|
];
|
|
});
|