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!)
This commit is contained in:
27
app/Http/Requests/Tenant/EmotionStoreRequest.php
Normal file
27
app/Http/Requests/Tenant/EmotionStoreRequest.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?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'],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user