Andrew 2 miesięcy temu
rodzic
commit
ca9498973e

+ 1
- 1
app/Models/UploadFile.php Wyświetl plik

11
 
11
 
12
     //
12
     //
13
     protected $guarded  = ["id"];
13
     protected $guarded  = ["id"];
14
-
14
+    public $translatable = ["title"];
15
     public $appends = [
15
     public $appends = [
16
         "upload_file_link"
16
         "upload_file_link"
17
     ];
17
     ];

+ 1
- 1
database/migrations/2025_11_04_081553_create_upload_files_table.php Wyświetl plik

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