SupportTicketRequest.php 575 B

1234567891011121314151617181920
  1. <?php
  2. namespace App\Http\Requests;
  3. use Illuminate\Foundation\Http\FormRequest;
  4. class SupportTicketRequest extends FormRequest
  5. {
  6. public function rules(): array
  7. {
  8. return [
  9. 'title' => 'required|string|max:255',
  10. 'description' => 'nullable|string',
  11. 'severity' => 'required|string|in:alta,normal,baixa',
  12. 'scope' => 'required|string|in:all,internal,specific',
  13. 'unit_id' => 'nullable|integer|exists:units,id',
  14. 'sector' => 'nullable|string|max:255',
  15. ];
  16. }
  17. }