Andrew пре 3 месеци
родитељ
комит
c7154433d1
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1
    1
      app/Filament/Resources/ProjectResource.php

+ 1
- 1
app/Filament/Resources/ProjectResource.php Прегледај датотеку

81
                     Tab::make('專案概要')->schema([
81
                     Tab::make('專案概要')->schema([
82
                         Select::make('region_id')->label('地區')->options(function () {
82
                         Select::make('region_id')->label('地區')->options(function () {
83
                             return Region::where('visible', true)->pluck('name', 'id');
83
                             return Region::where('visible', true)->pluck('name', 'id');
84
-                        }),
84
+                        })->required(),
85
                         Translate::make()->schema(fn (string $locale) => [
85
                         Translate::make()->schema(fn (string $locale) => [
86
                             Textarea::make('summaries')->label('簡述'),
86
                             Textarea::make('summaries')->label('簡述'),
87
                             TextInput::make('district')->label('區域'),
87
                             TextInput::make('district')->label('區域'),