🔥 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:
HolgerHatGarKeineNode
2026-01-17 21:00:46 +01:00
parent 74263a4581
commit 7f92e77684
28 changed files with 632 additions and 473 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Models;
use App\Enums\RecurrenceType;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
@@ -26,14 +27,24 @@ class MeetupEvent extends Model
'id' => 'integer',
'meetup_id' => 'integer',
'start' => 'datetime',
'recurrence_end_date' => 'datetime',
'attendees' => 'array',
'might_attendees' => 'array',
];
/**
* The attributes that should be cast to enums.
*
* @var array
*/
protected $enumCasts = [
'recurrence_type' => RecurrenceType::class,
];
protected static function booted()
{
static::creating(function ($model) {
if (!$model->created_by) {
if (! $model->created_by) {
$model->created_by = auth()->id();
}
});