mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2026-01-23 23:53:17 +00:00
- **Removed:** Unused feature and component tests to clean up the codebase. - **Added:** `RecurrenceType` enum for handling event recurrence modes. - **Introduced:** City, Country, and Meetup factories for test data generation. - **Implemented:** Migration to support recurring event fields in `meetup_events` table. - **Enhanced:** Livewire meetup events creation with recurrence validation and preview logic. - **Updated:** PHPUnit test suite configuration and composer dependencies for `pestphp/pest@v4.3`. - **Refined:** SEO configuration (`favicon`) to standardize icon format.
28 lines
615 B
PHP
28 lines
615 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\City>
|
|
*/
|
|
class CityFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'name' => fake()->city(),
|
|
'country_id' => 1,
|
|
'longitude' => fake()->longitude(),
|
|
'latitude' => fake()->latitude(),
|
|
'created_by' => \App\Models\User::factory(),
|
|
];
|
|
}
|
|
}
|