Andrew vor 2 Monaten
Ursprung
Commit
ca9498973e

+ 1
- 1
app/Models/UploadFile.php Datei anzeigen

@@ -11,7 +11,7 @@ class UploadFile extends Model
11 11
 
12 12
     //
13 13
     protected $guarded  = ["id"];
14
-
14
+    public $translatable = ["title"];
15 15
     public $appends = [
16 16
         "upload_file_link"
17 17
     ];

+ 1
- 1
database/migrations/2025_11_04_081553_create_upload_files_table.php Datei anzeigen

@@ -13,7 +13,7 @@ return new class extends Migration
13 13
     {
14 14
         Schema::create('upload_files', function (Blueprint $table) {
15 15
             $table->id();
16
-            $table->string("title")->nullable()->comment("標題");
16
+            $table->json("title")->nullable()->comment("標題");
17 17
             $table->string("type")->comment("附檔類型 1.社會公益");
18 18
             $table->string("upload_link")->comment("附檔連結");
19 19
             $table->date("award_date")->nullable()->comment("獲得日期");