public function recordUserActivity(UserActivityType $type, array $data = []): void 	{ 		if (!$this->shouldRecordUserActivity($type)) { 			return; 		}  		$user = auth()->user();  		if (!$user instanceof Authenticatable) { 			return; 		}  		$this->activities()->create([ 			'user_id' => $user->getKey(), 			'ip_address' => request()->ip(), 			'type' => $type, 			...$data, 		]); 	}