diff --git a/app/Http/Resources/AdminHashtag.php b/app/Http/Resources/AdminHashtag.php new file mode 100644 index 000000000..4ca164268 --- /dev/null +++ b/app/Http/Resources/AdminHashtag.php @@ -0,0 +1,29 @@ + $this->id, + 'name' => $this->name, + 'slug' => $this->slug, + 'can_trend' => $this->can_trend === null ? true : (bool) $this->can_trend, + 'can_search' => $this->can_search === null ? true : (bool) $this->can_search, + 'is_nsfw' => (bool) $this->is_nsfw, + 'is_banned' => (bool) $this->is_banned, + 'cached_count' => $this->cached_count ?? 0, + 'created_at' => $this->created_at + ]; + } +}