public function delete() { if (is_object($id)) { $id = $id->id; } $asset = Asset::withTrashed()->whereId($id)->first(); if ($asset) { $asset->delete(); } return $this->listener->statusResponse(['asset' => $asset]); }