mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2026-01-24 12:03:17 +00:00
🔥 Remove unused tests, update factories, and introduce recurrence features
- **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.
This commit is contained in:
23
app/Enums/RecurrenceType.php
Normal file
23
app/Enums/RecurrenceType.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
enum RecurrenceType: string
|
||||
{
|
||||
case Daily = 'daily';
|
||||
case Weekly = 'weekly';
|
||||
case Monthly = 'monthly';
|
||||
case Yearly = 'yearly';
|
||||
case Custom = 'custom';
|
||||
|
||||
public function getLabel(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::Daily => __('Täglich'),
|
||||
self::Weekly => __('Wöchentlich'),
|
||||
self::Monthly => __('Monatlich'),
|
||||
self::Yearly => __('Jährlich'),
|
||||
self::Custom => __('Benutzerdefiniert'),
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user