このリポジトリは2023-09-09にアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュ、イシューの作成、プルリクエストはできません。
2021-08-13 15:50:47 +09:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Database\Factories;
|
|
|
|
|
2021-09-29 12:43:36 +09:00
|
|
|
use App\Models\Contacts;
|
2021-08-13 15:50:47 +09:00
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
|
2021-09-29 12:43:36 +09:00
|
|
|
class ContactsFactory extends Factory
|
2021-08-13 15:50:47 +09:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The name of the factory's corresponding model.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
2021-09-29 12:43:36 +09:00
|
|
|
protected $model = Contacts::class;
|
2021-08-13 15:50:47 +09:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Define the model's default state.
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function definition()
|
|
|
|
{
|
|
|
|
return [
|
2021-09-29 12:43:36 +09:00
|
|
|
'email' => $this->faker->email,
|
|
|
|
'message' => $this->faker->realText(49),
|
|
|
|
'created_at' => $this->faker->dateTime,
|
|
|
|
'updated_at' => $this->faker->dateTime,
|
2021-08-13 15:50:47 +09:00
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|