mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-21 06:19:38 +08:00
22 lines
599 B
PHP
22 lines
599 B
PHP
<?php
|
|
|
|
use App\Models\Player;
|
|
|
|
$factory->define(Player::class, function (Faker\Generator $faker) {
|
|
return [
|
|
'uid' => factory(App\Models\User::class)->create()->uid,
|
|
'player_name' => $faker->firstName,
|
|
'preference' => 'default',
|
|
'last_modified' => $faker->dateTime
|
|
];
|
|
});
|
|
|
|
$factory->defineAs(Player::class, 'slim', function (Faker\Generator $faker) {
|
|
return [
|
|
'uid' => factory(App\Models\User::class)->create()->uid,
|
|
'player_name' => $faker->firstName,
|
|
'preference' => 'slim',
|
|
'last_modified' => $faker->dateTime
|
|
];
|
|
});
|