document = $document; } /** * Execute the job. * * @return Document */ public function handle() { \DB::transaction(function () { $this->deleteRelationships($this->document, [ 'transactions', 'recurring' ]); $this->document->status = 'cancelled'; $this->document->save(); }); return $this->document; } }