このリポジトリは2023-09-09にアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュ、イシューの作成、プルリクエストはできません。
kikikan/backend/database/factories/FatherRelationFactory.php

32 行
654 B
PHP
Raw 通常表示 履歴

2021-08-13 14:44:08 +09:00
<?php
namespace Database\Factories;
use App\Models\FatherRelation;
use Illuminate\Database\Eloquent\Factories\Factory;
class FatherRelationFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = FatherRelation::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
2021-11-02 22:40:03 +09:00
'father_id' => rand(1, 10),
'child_id' => rand(1, 10),
2021-09-29 12:43:36 +09:00
'created_at' => $this->faker->dateTime,
'updated_at' => $this->faker->dateTime,
2021-08-13 14:44:08 +09:00
];
}
}