mivita/app/Http/Requests/PaymentIncident/AddIncidentActivityRequest.php
2026-04-14 18:07:45 +02:00

31 lines
776 B
PHP

<?php
namespace App\Http\Requests\PaymentIncident;
use Illuminate\Foundation\Http\FormRequest;
class AddIncidentActivityRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
public function rules(): array
{
return [
'type' => ['required', 'in:note,email,call,ticket,status_change,provider_response'],
'title' => ['required', 'string', 'max:255'],
'content' => ['nullable', 'string'],
];
}
public function messages(): array
{
return [
'type.required' => 'Bitte einen Aktivitätstyp auswählen.',
'type.in' => 'Ungültiger Aktivitätstyp.',
'title.required' => 'Bitte einen Titel angeben.',
];
}
}