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

35 行
832 B
PHP
Raw 通常表示 履歴

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