diff --git a/database/migrations/2022_12_27_102053_update_hashtag_count.php b/database/migrations/2022_12_27_102053_update_hashtag_count.php index 94d85e2c..4816c193 100644 --- a/database/migrations/2022_12_27_102053_update_hashtag_count.php +++ b/database/migrations/2022_12_27_102053_update_hashtag_count.php @@ -19,6 +19,8 @@ return new class extends Migration foreach($hashtags as $hashtag) { $count = DB::table('status_hashtags')->whereHashtagId($hashtag->id)->count(); $hashtag->cached_count = $count; + $hashtag->can_trend = true; + $hashtag->can_search = true; $hashtag->save(); } });