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

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

2021-08-10 15:23:18 +09:00
<?php
namespace Database\Factories;
2021-08-12 10:57:32 +09:00
use \App\Models\Admin;
use Illuminate\Database\Eloquent\Factories\Factory;
2021-08-10 15:23:18 +09:00
2021-08-12 10:57:32 +09:00
class AdminFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Admin::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'email' => $this->faker->email,
'password' => $this->faker->password,
'created_at' => $this->faker->dateTime,
'updated_at' => $this->faker->dateTime,
];
}
}