mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2026-05-03 16:24:55 +00:00
1f0bfba0d3
🛠️ **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.
25 lines
713 B
PHP
25 lines
713 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\EmailCampaign;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends Factory<EmailCampaign>
|
|
*/
|
|
class EmailCampaignFactory extends Factory
|
|
{
|
|
protected $model = EmailCampaign::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'name' => 'Bitcoin Newsletter '.fake()->unique()->numberBetween(1, 9999),
|
|
'list_file_name' => 'list_'.fake()->unique()->slug(2).'.csv',
|
|
'subject_prompt' => 'Schreibe einen ansprechenden Betreff über Bitcoin und Sound Money.',
|
|
'text_prompt' => 'Verfasse einen freundlichen Newsletter über die neuesten Bitcoin-Entwicklungen.',
|
|
];
|
|
}
|
|
}
|