StoreReclamationDetailsRequest.php 763 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace App\Http\Requests;
  3. use Illuminate\Foundation\Http\FormRequest;
  4. class StoreReclamationDetailsRequest extends FormRequest
  5. {
  6. /**
  7. * Determine if the user is authorized to make this request.
  8. */
  9. public function authorize(): bool
  10. {
  11. return auth()->check();
  12. }
  13. /**
  14. * Get the validation rules that apply to the request.
  15. *
  16. * @return array
  17. */
  18. public function rules(): array
  19. {
  20. return [
  21. 'name' => 'nullable|array',
  22. 'name.*' => 'nullable|string',
  23. 'quantity' => 'nullable|array',
  24. 'quantity.*' => 'nullable|string',
  25. 'with_documents' => 'nullable|array',
  26. 'with_documents.*' => 'nullable|boolean',
  27. ];
  28. }
  29. }