delete(); // Application keys are panel resources, logged by the admin API; an account key // belongs on its owner's feed. if ($key->key_type === ApiKey::TYPE_ACCOUNT) { Activity::event('user:api-key.delete')->subject($key->user)->property('identifier', $key->identifier)->log(); } } }