Andrew il y a 2 mois
Parent
révision
1efb23abd1
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      app/Filament/Resources/BannerResource.php

+ 1
- 1
app/Filament/Resources/BannerResource.php Voir le fichier

@@ -107,7 +107,7 @@ class BannerResource extends Resource
107 107
                 ImageColumn::make('img_url')->label('圖片'),
108 108
                 TextColumn::make('title')->label('標題'),
109 109
                 TextColumn::make('video_url')->label('影片網址')
110
-                    ->visible(fn ($record): bool => $record->type == 2),
110
+                    ->visible(fn ($state): bool => $state == 2),
111 111
             ])
112 112
             ->filters([
113 113
         //