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

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

@@ -61,7 +61,8 @@ class BannerResource extends Resource
61 61
                             ->locales(['zh_TW', 'en'])
62 62
                             ->actions([
63 63
                                 app(DeepLService::class)->createTranslationAction('Main', ['title', 'content']),
64
-                            ])->columnSpanFull(),
64
+                            ])->columnSpanFull()
65
+                            ->visible(fn($get) => $get('type') == 1),
65 66
                         Group::make()->schema([
66 67
                             FileUpload::make('img_url')->label('圖片')->directory('banners')->columnSpan(1)
67 68
                                 ->acceptedFileTypes(['image/jpeg', 'image/jpg', 'image/png', 'image/webp'])