protected static function logApiKeyAdminEvent(ApiKey $apiKey, $eventName)
    {
        $event             = new ApiKeyAdminEvent;
        $event->api_key_id = $apiKey->id;
        $event->ip_address = request()->ip();
        $event->event      = $eventName;
        $event->save();
    }
protected static function logApiKeyAdminEvent(ApiKey $apiKey, $eventName)
    {
        $event             = new ApiKeyAdminEvent;
        $event->api_key_id = $apiKey->id;
        $event->ip_address = request()->ip();
        $event->event      = $eventName;
        $event->save();
    }
protected static function logApiKeyAdminEvent ( ApiKey $ apiKey , $ eventName ) { $ event = new ApiKeyAdminEvent ; $ event -> api_key_id = $ apiKey -> id ; $ event -> ip_address = request ( ) -> ip ( ) ; $ event -> event = $ eventName ; $ event -> save ( ) ; }
Log an API key admin event

@param ApiKey $apiKey
@param string $eventName
Log an API key admin event