<?php
namespace App\Http\Requests\Admin;

use Illuminate\Foundation\Http\FormRequest;

class ChangerStatutMissionRequest extends FormRequest
{
    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            'statut' => 'required|string|in:planifiee,active,suspendue,terminee,annulee',
            'motif' => 'nullable|string|max:500',
        ];
    }
}
