You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Logo após já conseguimos usarcpf ecnpj como atributo de validação dentro devalidate() como no métodostore() abaixo:
publicfunctionstore(Request$request){$validatedData =$request->validate(['title' =>'required|unique:posts|max:255','body' =>'required','cpf' =>'required|cpf',// Validando cpf'cnpj' =>'required|cnpj',// Validando cnpj ]);// O post no blog é válido.}