$attribute_category->getRouteKey(), 'key' => [ 'public' => $attribute_category->getPublicKey(), 'route' => $attribute_category->getRouteKey(), ], 'id' => $attribute_category->id, 'parent_id' => $attribute_category->parent_id, 'name' => $attribute_category->name, 'slug' => $attribute_category->slug, 'created_at' => $attribute_category->created_at, 'updated_at' => $attribute_category->updated_at, 'deleted_at' => $attribute_category->deleted_at, 'url' => [ 'public' => trans_url('attribute/'.$attribute_category->getPublicKey()), 'user' => guard_url('attribute/attribute_category/'.$attribute_category->getRouteKey()), ], 'status' => trans('app.'.$attribute_category->status), 'created_at' => format_date($attribute_category->created_at), 'updated_at' => format_date($attribute_category->updated_at), ]; } }