0
public function cadastro(Request $request)
{
$user=new User();
$user->name= $request->name;
$user->email=$request->email;
$user->password= FacadesHash::make($request->password);
$user->save();
return redirect()->route('users.listAll');
}
public function formEditUser(User $user){
return view('editUser',[
'user'=>$user
]);
}