feat: 富文本编辑

This commit is contained in:
2026-04-16 16:20:52 +08:00
parent 295cf12899
commit 6acd0ccad0
8 changed files with 150 additions and 40 deletions

View File

@@ -0,0 +1,24 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('guide_pages', function (Blueprint $table) {
$table->dropColumn('html_url');
$table->longText('content')->nullable()->after('title')->comment('富文本正文HTML');
});
}
public function down(): void
{
Schema::table('guide_pages', function (Blueprint $table) {
$table->dropColumn('content');
$table->string('html_url', 500)->after('title')->comment('HTML页面链接');
});
}
};