protected function doSave(Data $data) { $user = User::get(); if (!$user->isMember()) { throw new ValidFailException('User not login'); } Notification::removeNotification($data->type, $data->target_id, $user->id); }