AssociateValidationRequest.php 381 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace App\Http\Requests;
  3. use Illuminate\Foundation\Http\FormRequest;
  4. class AssociateValidationRequest extends FormRequest
  5. {
  6. public function authorize(): bool
  7. {
  8. return true;
  9. }
  10. public function rules(): array
  11. {
  12. return [
  13. 'search' => [
  14. 'nullable',
  15. 'string',
  16. ],
  17. ];
  18. }
  19. }