. */ declare(strict_types=1); namespace FireflyIII\Events; use FireflyIII\User; use Illuminate\Queue\SerializesModels; /** * Class DetectedNewIPAddress */ class DetectedNewIPAddress extends Event { use SerializesModels; public string $ipAddress; public User $user; /** * Create a new event instance. This event is triggered when a new user registers. */ public function __construct(User $user, string $ipAddress) { $this->ipAddress = $ipAddress; $this->user = $user; } }