mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2025-12-14 12:06:46 +00:00
✨ Enhance timezone support across application
- Introduced a `SetTimezone` middleware to dynamically apply user-specific timezones. - Added a `timezone chooser` component for users to select their timezone. - Enhanced date and time display in views with `asDate`, `asTime`, and `asDateTime` methods. - Updated `AppServiceProvider` to leverage `preventLazyLoading` in local environments and set custom `Carbon` instance for dates. - Expanded configuration with `user-timezone`. - Integrated timezone support into meetups and events for consistent scheduling.
This commit is contained in:
@@ -123,6 +123,7 @@ class Meetup extends Model implements HasMedia
|
||||
return Attribute::make(
|
||||
get: fn()
|
||||
=> $nextEvent ? [
|
||||
'id' => $nextEvent->id,
|
||||
'start' => $nextEvent->start,
|
||||
'portalLink' => url()->route('meetups.landingpage-event',
|
||||
['country' => $this->city->country, 'meetup' => $this, 'event' => $nextEvent]),
|
||||
@@ -139,7 +140,8 @@ class Meetup extends Model implements HasMedia
|
||||
protected function belongsToMe(): Attribute
|
||||
{
|
||||
return Attribute::make(
|
||||
get: fn() => DB::table('meetup_user')->where('meetup_id', $this->id)->where('user_id', auth()->id())->exists(),
|
||||
get: fn() => DB::table('meetup_user')->where('meetup_id', $this->id)->where('user_id',
|
||||
auth()->id())->exists(),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user