mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2026-05-04 04:34:54 +00:00
🎨 **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:
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\Library;
|
||||
use App\Models\User;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends Factory<Library>
|
||||
*/
|
||||
class LibraryFactory extends Factory
|
||||
{
|
||||
protected $model = Library::class;
|
||||
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'name' => fake()->unique()->randomElement([
|
||||
'Bitcoin Standard Library',
|
||||
'Lightning Network Resources',
|
||||
'Nostr Knowledge Base',
|
||||
'Self Custody Guides',
|
||||
'Sound Money Classics',
|
||||
'Cypherpunk Archive',
|
||||
]).' '.fake()->unique()->numberBetween(1, 9999),
|
||||
'is_public' => true,
|
||||
'language_codes' => ['en', 'de'],
|
||||
'parent_id' => null,
|
||||
'created_by' => User::factory(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user