types); if ($this->is_short) { $types->push('SHORTS'); } return [ 'id' => $this->id, 'title' => $this->title, 'description' => $this->description, 'asin' => $this->asin, 'product_name' => $this->product_name, 'amazon_url' => $this->amazon_url, 'visibility' => $this->visibility, 'status' => $this->status, 'created_at' => $this->created_at, 'video_url' => $this->video_url, 'original_video_url' => $this->original_video_url, 'types' => $this->types, 'video_types' => $types->join(', '), 'amazon_total_reviews' => $this->amazon_total_reviews, 'studio_plus_category_id' => $this->studio_plus_category_id, 'studio_plus_asin_id' => $this->studio_plus_asin_id, 'global_setting_id' => $this->global_setting_id, 'filename' => $this->filename, 'asin_data' => $this->whenLoaded('asinData'), 'category' => $this->whenLoaded('category'), 'thumbnail' => $this->whenLoaded('thumbnail'), 'thumbnails' => $this->whenLoaded('thumbnails'), 'channel' => $this->whenLoaded('channel'), 'upload_status' => $this->upload_status, 'brand' => $this->brand, 'job_request_id' => $this->job_request_id, 'is_short' => $this->is_short, 'old' => $this->old ]; } }