Es gibt nun task collections und vordefinierte tasks für alle. Onboarding verfeinert und webseite-carousel gefixt (logging später entfernen!)
28 lines
829 B
PHP
28 lines
829 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Tenant;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class EmotionUpdateRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'name' => ['sometimes', 'nullable', 'string', 'max:255'],
|
|
'description' => ['sometimes', 'nullable', 'string'],
|
|
'icon' => ['sometimes', 'nullable', 'string', 'max:50'],
|
|
'color' => ['sometimes', 'nullable', 'string', 'regex:/^#?[0-9a-fA-F]{6}$/'],
|
|
'sort_order' => ['sometimes', 'nullable', 'integer'],
|
|
'is_active' => ['sometimes', 'boolean'],
|
|
'event_type_ids' => ['sometimes', 'array'],
|
|
'event_type_ids.*' => ['integer', 'exists:event_types,id'],
|
|
];
|
|
}
|
|
}
|