app/Http/Requests/Providers.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 [
            'social_name' => 'required|min:5|max:191',
            'alias_name' => 'required',
            'document_company' => 'required',
            'document_company_secondary' => 'required',
            'zipcode' => 'required|min:8|max:9',
            'street' => 'required',
            'number' => 'required',
            'neighborhood' => 'required',
            'state' => 'required',
            'city' => 'required',
            'telephone' => 'required|min:5|max:15',
            'email' => 'required|email',
            'contact' => 'required'
        ];
    }
public function rules ( ) { return [ 'social_name' => 'required|min:5|max:191' , 'alias_name' => 'required' , 'document_company' => 'required' , 'document_company_secondary' => 'required' , 'zipcode' => 'required|min:8|max:9' , 'street' => 'required' , 'number' => 'required' , 'neighborhood' => 'required' , 'state' => 'required' , 'city' => 'required' , 'telephone' => 'required|min:5|max:15' , 'email' => 'required|email' , 'contact' => 'required' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .
// Address // contato