Files
zemailnator/database/factories/RemoteEmailFactory.php
2025-11-14 01:51:35 -08:00

27 lines
758 B
PHP

<?php
namespace Database\Factories;
use App\Models\RemoteEmail;
use Illuminate\Database\Eloquent\Factories\Factory;
class RemoteEmailFactory extends Factory
{
protected $model = RemoteEmail::class;
public function definition(): array
{
return [
'message_id' => $this->faker->uuid(),
'subject' => $this->faker->sentence(),
'from_name' => $this->faker->name(),
'from_email' => $this->faker->email(),
'to' => [$this->faker->email()],
'body_html' => '<p>'.$this->faker->paragraph().'</p>',
'body_text' => $this->faker->paragraph(),
'is_seen' => $this->faker->boolean(),
'timestamp' => $this->faker->dateTime(),
];
}
}