$actor->id, 'action' => $action, 'auditable_type' => $auditable?->getMorphClass(), 'auditable_id' => $auditable?->getKey(), 'ip_address' => Request::ip(), 'user_agent' => Request::userAgent(), 'metadata' => $metadata, ]); } }