public static function updateLogin(User $user) { static::where(['id' => $user->id])->update(['login' => date('Y-m-d H:i:s')]); }