app/Http/Requests/Operation/UpdateRequest.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 [
            'amount' => 'numeric|required',
            'comment' => 'nullable',
            'account_id' => 'integer|required',
            'category_id' => 'integer|nullable',
            'is_income' => 'boolean'
        ];
    }
public function rules ( ) { return [ 'amount' => 'numeric|required' , 'comment' => 'nullable' , 'account_id' => 'integer|required' , 'category_id' => 'integer|nullable' , 'is_income' => 'boolean' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .