"array", "spec" => "array", "custom" => "array", ]; public function format(...$options) { } public function map() { return $this->hasMany(GoodsCategoryMap::class, "goods_id", "id"); } public function getThumbAttribute() { return Arr::first($this->image_list); } public function specMap() { return $this->hasMany(GoodsSpecMap::class, "goods_id", "id"); } }