mini-aspire/app/Http/Requests/API/Admin/LoanCreateAdminRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'user_id' => 'required|integer',
            'amount' => 'required|integer',
            'currency' => 'required|string',
            'duration' => 'required|integer',
            'repayment_frequency' => 'required|integer',
            'interest_rate' => 'required',
            'arrangement_fee' => 'required',
            'first_paydate' => 'required',
        ];
    }
public function rules ( ) { return [ 'user_id' => 'required|integer' , 'amount' => 'required|integer' , 'currency' => 'required|string' , 'duration' => 'required|integer' , 'repayment_frequency' => 'required|integer' , 'interest_rate' => 'required' , 'arrangement_fee' => 'required' , 'first_paydate' => 'required' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .