🎨 **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.
This commit is contained in:
BT
2026-05-02 19:17:02 +01:00
parent c81b168a11
commit 1f0bfba0d3
57 changed files with 3980 additions and 2142 deletions
@@ -6,6 +6,7 @@ use App\Enums\SelfHostedServiceType;
use App\Models\SelfHostedService;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
/**
* @extends Factory<SelfHostedService>
@@ -19,17 +20,26 @@ class SelfHostedServiceFactory extends Factory
$name = $this->faker->unique()->company();
return [
// 'created_by' => $this->faker->optional()->numberBetween(1,9),
'created_by' => 750,
'created_by' => User::factory(),
'name' => $name,
'slug' => str($name)->slug(),
'intro' => $this->faker->optional()->paragraph(),
'url_clearnet' => $this->faker->optional()->url(),
'url_onion' => $this->faker->optional()->url(),
'url_i2p' => $this->faker->optional()->url(),
'url_pkdns' => $this->faker->optional()->url(),
'slug' => Str::slug($name).'-'.$this->faker->unique()->numberBetween(1000, 99999),
'intro' => $this->faker->paragraph(),
'url_clearnet' => $this->faker->boolean(80) ? $this->faker->url() : null,
'url_onion' => $this->faker->boolean(20) ? Str::random(56).'.onion' : null,
'url_i2p' => null,
'url_pkdns' => null,
'type' => $this->faker->randomElement(SelfHostedServiceType::cases())->value,
'contact' => $this->faker->optional()->url(),
'contact' => $this->faker->boolean(60) ? $this->faker->email() : null,
'ip' => $this->faker->boolean(50) ? $this->faker->ipv4() : null,
'anon' => false,
];
}
public function anonymous(): static
{
return $this->state(fn () => [
'anon' => true,
'created_by' => null,
]);
}
}