このリポジトリは2023-09-09にアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュ、イシューの作成、プルリクエストはできません。
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 23:12:46 +09:00
|
|
|
{
|
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-08-13 13:17:12 +09:00
|
|
|
'father_id' => 1,
|
|
|
|
'email' => $this->faker->email,
|
2021-08-13 21:12:02 +09:00
|
|
|
'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,
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|