StoreUnitReceivableRequest.php 666 B

1234567891011121314151617181920
  1. <?php
  2. namespace App\Http\Requests;
  3. use Illuminate\Foundation\Http\FormRequest;
  4. class StoreUnitReceivableRequest extends FormRequest
  5. {
  6. public function rules(): array
  7. {
  8. return [
  9. 'history' => 'required|string|max:255',
  10. 'value' => 'required|numeric|min:0.01',
  11. 'due_date' => 'required|date',
  12. 'student_id' => 'nullable|integer|exists:students,id',
  13. 'financial_plan_account_id' => 'nullable|integer|exists:financial_plan_accounts,id',
  14. 'obs' => 'nullable|string|max:1000',
  15. ];
  16. }
  17. }