protected function logAccessEvent(Request $request, ApiKey $apiKey)
    {
        $event = new ApiKeyAccessEvent;
        $event->api_key_id = $apiKey->id;
        $event->ip_address = $request->ip();
        $event->url        = $request->fullUrl();
        $event->save();
    }
protected function logAccessEvent(Request $request, ApiKey $apiKey)
    {
        $event = new ApiKeyAccessEvent;
        $event->api_key_id = $apiKey->id;
        $event->ip_address = $request->ip();
        $event->url        = $request->fullUrl();
        $event->save();
    }
protected function logAccessEvent ( Request $ request , ApiKey $ apiKey ) { $ event = new ApiKeyAccessEvent ; $ event -> api_key_id = $ apiKey -> id ; $ event -> ip_address = $ request -> ip ( ) ; $ event -> url = $ request -> fullUrl ( ) ; $ event -> save ( ) ; }
Log an API key access event

@param Request $request
@param ApiKey  $apiKey
Log an API key access event