소스 검색

prjects.sub_name nullable

Andrew 3 주 전
부모
커밋
d8f3004850

+ 1
- 1
app/Filament/Resources/ProjectResource.php 파일 보기

@@ -52,7 +52,7 @@ class ProjectResource extends Resource
52 52
                 Section::make('')->schema([
53 53
                     Translate::make()->schema(fn(string $locale) => [
54 54
                         TextInput::make('name')->label('項目名稱')->required(),
55
-                        TextInput::make('sub_name')->label('項目子名稱')->required(),
55
+                        TextInput::make('sub_name')->label('項目子名稱'),
56 56
                     ])
57 57
                         ->locales(['zh_TW', 'en'])
58 58
                         ->actions([

+ 960
- 872
composer.lock
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


+ 28
- 0
database/migrations/2026_03_16_075128_make_sub_name_nullable_in_projects_table.php 파일 보기

@@ -0,0 +1,28 @@
1
+<?php
2
+
3
+use Illuminate\Database\Migrations\Migration;
4
+use Illuminate\Database\Schema\Blueprint;
5
+use Illuminate\Support\Facades\Schema;
6
+
7
+return new class extends Migration
8
+{
9
+    /**
10
+     * Run the migrations.
11
+     */
12
+    public function up(): void
13
+    {
14
+        Schema::table('projects', function (Blueprint $table) {
15
+            $table->json("sub_name")->nullable()->change();
16
+        });
17
+    }
18
+
19
+    /**
20
+     * Reverse the migrations.
21
+     */
22
+    public function down(): void
23
+    {
24
+        Schema::table('projects', function (Blueprint $table) {
25
+            $table->json("sub_name")->nullable(false)->change();
26
+        });
27
+    }
28
+};

+ 1
- 1
public/css/filament/forms/forms.css
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


+ 19
- 19
public/js/filament/forms/components/markdown-editor.js
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기