Hintergründe zum EventInvitePage Layout Customizer hinzugefügt. Badge und CTA entfernt, Textfelder zu Textareas gemacht. Geschenkgutscheine verbessert, E-Mail-Versand ergänzt + Resend + Confirmationseite mit Code-Copy und Link zur Package-Seite, die den Code als URL-Parameter enthält.
This commit is contained in:
@@ -178,6 +178,26 @@ class AppServiceProvider extends ServiceProvider
|
||||
];
|
||||
});
|
||||
|
||||
RateLimiter::for('gift-lookup', function (Request $request) {
|
||||
$code = strtoupper((string) $request->query('code'));
|
||||
$ip = $request->ip() ?? 'unknown';
|
||||
|
||||
return [
|
||||
Limit::perMinute(30)->by('gift-lookup:ip:'.$ip),
|
||||
Limit::perMinute(10)->by('gift-lookup:code:'.($code ?: $ip)),
|
||||
];
|
||||
});
|
||||
|
||||
RateLimiter::for('gift-resend', function (Request $request) {
|
||||
$code = strtoupper((string) $request->input('code'));
|
||||
$ip = $request->ip() ?? 'unknown';
|
||||
|
||||
return [
|
||||
Limit::perMinute(10)->by('gift-resend:ip:'.$ip),
|
||||
Limit::perHour(5)->by('gift-resend:code:'.($code ?: $ip)),
|
||||
];
|
||||
});
|
||||
|
||||
Inertia::share('locale', fn () => app()->getLocale());
|
||||
Inertia::share('analytics', static function () {
|
||||
$config = config('services.matomo');
|
||||
|
||||
Reference in New Issue
Block a user