Files
fotospiel-app/app/Http/Requests/Tenant/EmotionStoreRequest.php
Codex Agent 1a4bdb1fe1 tenant admin startseite schicker gestaltet und super-admin und tenant admin (filament) aufgesplittet.
Es gibt nun task collections und vordefinierte tasks für alle. Onboarding verfeinert und webseite-carousel gefixt (logging später entfernen!)
2025-10-14 15:17:52 +02:00

28 lines
761 B
PHP

<?php
namespace App\Http\Requests\Tenant;
use Illuminate\Foundation\Http\FormRequest;
class EmotionStoreRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
public function rules(): array
{
return [
'name' => ['required', 'string', 'max:255'],
'description' => ['nullable', 'string'],
'icon' => ['nullable', 'string', 'max:50'],
'color' => ['nullable', 'string', 'regex:/^#?[0-9a-fA-F]{6}$/'],
'sort_order' => ['nullable', 'integer'],
'is_active' => ['nullable', 'boolean'],
'event_type_ids' => ['nullable', 'array'],
'event_type_ids.*' => ['integer', 'exists:event_types,id'],
];
}
}