app/Http/Requests/BankAccountCreateRequest.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 [
            'name' => 'required|max:255',
            'agency' => 'required|max:255',
            'account' => 'required|max:255',
            'default' => 'boolean',
            'bank_id' => 'required|exists:banks,id'
        ];
    }
public function rules ( ) { return [ 'name' => 'required|max:255' , 'agency' => 'required|max:255' , 'account' => 'required|max:255' , 'default' => 'boolean' , 'bank_id' => 'required|exists:banks,id' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .