| 1234567891011121314151617181920212223242526272829 |
- <?php
- namespace App\Http\Requests;
- use Illuminate\Foundation\Http\FormRequest;
- class UnitFinancialRequest extends FormRequest
- {
- public function rules(): array
- {
- return [
- 'unit_id' => 'required|integer|exists:units,id',
- 'tax_regime' => 'nullable|string|max:50',
- 'bank' => 'nullable|string|max:100',
- 'agency' => 'nullable|string|max:20',
- 'account' => 'nullable|string|max:30',
- 'account_type' => 'nullable|string|max:20',
- 'account_holder' => 'nullable|string|max:255',
- 'pix_key' => 'nullable|string|max:255',
- 'billing_method' => 'nullable|string|max:50',
- 'due_date' => 'nullable|string|max:10',
- 'financial_email' => 'nullable|email|max:255',
- 'group' => 'nullable|string|max:100',
- 'maintenance_fee' => 'nullable|numeric|min:0',
- 'marketing_fund' => 'nullable|numeric|min:0',
- 'tbr' => 'nullable|numeric|min:0',
- ];
- }
- }
|