清理 缓存

This commit is contained in:
iVampireSP.com 2022-11-19 20:24:38 +08:00
parent 7bedade876
commit 7123bb900f
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -1,6 +1,7 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\DB;
return new class extends Migration {
@ -12,6 +13,8 @@
public function up()
{
DB::raw('ALTER TABLE `hosts` CHANGE `price` `price` DOUBLE(60,8) NULL DEFAULT NULL;');
Artisan::call('modelCache:clear');
}
/**