belongsTo('App\Models\User', 'creator'); } public function isXmlAsset() { return $this->type == "Hat" || $this->type == "Model" || $this->type == "Gear" || $this->type == "Package" || $this->type == "Head"; } public function getXmlContents() { if (Storage::disk('public')->exists('items/' . $this->id)) { return Storage::disk('public')->get('items/' . $this->id); } else { return false; } } }