This commit is contained in:
2026-04-18 14:18:52 +02:00
parent 5b4d3d435e
commit f3e5100d5d
126 changed files with 743 additions and 795 deletions

View File

@@ -2,7 +2,6 @@
use App\Models\Episode;
use App\Models\Hentai;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;
@@ -13,10 +12,10 @@ return new class extends Migration
*/
public function up(): void
{
foreach (Hentai::all() as $hentai) {
foreach (Hentai::all() as $hentai) {
$slugParts = explode('-', $hentai->slug);
$lastPart = $slugParts[array_key_last($slugParts)];
if (is_numeric($lastPart) && $lastPart < 1000) {
if (is_numeric($lastPart) && $lastPart < 1000) {
$slugParts[array_key_last($slugParts)] = 's'.$lastPart;
$newSlug = implode('-', $slugParts);