date = $date; $this->customer = $customer; $this->customerLogin = $customerLogin; } /** * Execute the job. * * @return void */ public function handle(): void { if ($this->customerLogin->last_connection < $this->date) { $this->customerLogin->last_connection = $this->date; $this->customer->logins()->save($this->customerLogin); } } }