memberId = $member->id; $this->user = $user; } /** * Execute the job. * * @return void */ public function handle() { $this->member = Member::find($this->memberId); if (!$this->member->hasNami) { return; } Nami::login($this->user->mglnr)->deleteMember($this->member->nami_id); Member::withoutEvents(function() { $this->member->update(['nami_id' => null]); }); } }