Files
einundzwanzig-app/database/factories/EmailTextsFactory.php
T
BT 1f0bfba0d3 🎨 **Style:** Fixed indentation inconsistencies in meetup_user migration file.
🛠️ **Factory:** Created factories for `TwitterAccount`, `EmailCampaign`, `EmailTexts`, and `BookCase`.
 **Helper:** Added `NostrHelper` with methods for generating fake/mocked Nostr data.
⬆️ **Dependencies:** Updated multiple Composer dependencies including `laravel/framework`, `astrotomic/laravel-translatable`, and others to their latest versions.
2026-05-02 19:17:02 +01:00

26 lines
576 B
PHP

<?php
namespace Database\Factories;
use App\Models\EmailCampaign;
use App\Models\EmailTexts;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends Factory<EmailTexts>
*/
class EmailTextsFactory extends Factory
{
protected $model = EmailTexts::class;
public function definition(): array
{
return [
'email_campaign_id' => EmailCampaign::factory(),
'sender_md5' => md5(fake()->unique()->safeEmail()),
'subject' => fake()->sentence(),
'text' => fake()->paragraphs(3, true),
];
}
}