33namespace App \Filament \Resources \Threads \Tables ;
44
55use App \Models \Thread ;
6+ use Filament \Actions \Action ;
67use Filament \Actions \BulkActionGroup ;
78use Filament \Actions \DeleteBulkAction ;
8- use Filament \Actions \Action ;
9- use Filament \Tables \Columns \TextColumn ;
109use Filament \Tables \Columns \ImageColumn ;
10+ use Filament \Tables \Columns \TextColumn ;
1111use Filament \Tables \Table ;
1212
1313class ThreadsTable
@@ -19,11 +19,11 @@ public static function configure(Table $table): Table
1919 ImageColumn::make ('authorRelation.github_id ' )
2020 ->label ('Author ' )
2121 ->circular ()
22- ->defaultImageUrl (fn (?string $ state ): string => $ state ? sprintf ('https://avatars.githubusercontent.com/u/%s ' , $ state ) : asset ('images/laravelio-icon-gray.svg ' )),
22+ ->defaultImageUrl (fn (?string $ state ): string => $ state ? sprintf ('https://avatars.githubusercontent.com/u/%s ' , $ state ) : asset ('images/laravelio-icon-gray.svg ' )),
2323
2424 TextColumn::make ('authorRelation.name ' )
2525 ->label ('' )
26- ->description (fn (Thread $ thread ): ?string => $ thread ->authorRelation ->username )
26+ ->description (fn (Thread $ thread ): ?string => $ thread ->authorRelation ->username )
2727 ->searchable (),
2828
2929 TextColumn::make ('subject ' )
@@ -49,7 +49,7 @@ public static function configure(Table $table): Table
4949 ])
5050 ->recordActions ([
5151 Action::make ('view ' )
52- ->url (fn (Thread $ thread ): string => route ('thread ' , $ thread ->slug ()))
52+ ->url (fn (Thread $ thread ): string => route ('thread ' , $ thread ->slug ()))
5353 ->openUrlInNewTab ()
5454 ->icon ('heroicon-s-eye ' ),
5555
0 commit comments