Skip to content

Commit d5fdedc

Browse files
committed
wip
1 parent 2ec996c commit d5fdedc

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

app/Models/Plugin.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff 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
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
};

0 commit comments

Comments
 (0)