/** * Execute Job */ public function handle() { $this->code->setAttribute('user_id', null); $this->code->save(); event(new CodeUnlinkUpdated($this->code)); }