protected function create(array $data)
{
return User::create([
'username' => $data['name'],
'email' => $data['email'],
'password' => base64_encode(hash('sha256', $data['password'], true)),
'last_ip' => $this->last_ip,
]);
}