app/Http/Requests/BankAccountValidator.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',
            'accountholder_name'=>'required|min:5|max:15',
            'bank_name'=>'required',
            'branch_name'=>'required',
            'account_number'=>'required|min:6:max:25'
        ];
    }
public function rules ( ) { return [ 'user_id' => 'required' , 'accountholder_name' => 'required|min:5|max:15' , 'bank_name' => 'required' , 'branch_name' => 'required' , 'account_number' => 'required|min:6:max:25' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .