File tree Expand file tree Collapse file tree 2 files changed +18
-8
lines changed
Expand file tree Collapse file tree 2 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -171,14 +171,7 @@ public function cacheStarsCount(): void
171171
172172 public function getStarsCountCacheKey (): string
173173 {
174- $ slug = $ this ->slug ;
175-
176- $ slug = match ($ slug ) {
177- 'filament-themes ' => 'filament-minimal-theme ' ,
178- default => $ slug ,
179- };
180-
181- return "plugin: {$ slug }:stars_count " ;
174+ return "plugin: {$ this ->slug }:stars_count " ;
182175 }
183176
184177 public function getPriceCacheKey (): string
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ use Illuminate \Database \Migrations \Migration ;
4+ use Illuminate \Support \Facades \DB ;
5+
6+ return new class extends Migration
7+ {
8+ /**
9+ * Run the migrations.
10+ */
11+ public function up (): void
12+ {
13+ DB ::table ('stars ' )
14+ ->where ('starrable_id ' , 'filament-minimal-theme ' )
15+ ->update (['starrable_id ' => 'filament-themes ' ]);
16+ }
17+ };
You can’t perform that action at this time.
0 commit comments