UnitFinancialRequest.php 1.2 KB

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace App\Http\Requests;
  3. use Illuminate\Foundation\Http\FormRequest;
  4. class UnitFinancialRequest extends FormRequest
  5. {
  6. public function rules(): array
  7. {
  8. return [
  9. 'unit_id' => 'required|integer|exists:units,id',
  10. 'tax_regime' => 'nullable|string|max:50',
  11. 'bank' => 'nullable|string|max:100',
  12. 'agency' => 'nullable|string|max:20',
  13. 'account' => 'nullable|string|max:30',
  14. 'account_type' => 'nullable|string|max:20',
  15. 'account_holder' => 'nullable|string|max:255',
  16. 'pix_key' => 'nullable|string|max:255',
  17. 'billing_method' => 'nullable|string|max:50',
  18. 'due_date' => 'nullable|string|max:10',
  19. 'financial_email' => 'nullable|email|max:255',
  20. 'group' => 'nullable|string|max:100',
  21. 'maintenance_fee' => 'nullable|numeric|min:0',
  22. 'marketing_fund' => 'nullable|numeric|min:0',
  23. 'tbr' => 'nullable|numeric|min:0',
  24. ];
  25. }
  26. }