File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -51,17 +51,16 @@ public static function table(Table $table): Table
5151 ->label ('Auteur ' ),
5252 ])
5353 ->filters ([
54- SelectFilter::make ('Auteur ' )->relationship ('user ' , 'name ' )->searchable ()->preload (),
54+ SelectFilter::make ('Channels ' )->relationship ('channels ' , 'name ' )->searchable ()->preload (),
5555 ])
5656 ->actions ([
5757 ActionGroup::make ([
58- Action::make ('view_thread ' )
58+ Action::make ('view ' )
5959 ->label ('Voir le thread ' )
6060 ->icon ('heroicon-o-eye ' )
6161 ->color ('success ' )
62- ->action (function ($ record ): void {
63- redirect ()->route ('forum.show ' , $ record );
64- }),
62+ ->url (fn (Thread $ record ): string => route ('forum.show ' , $ record ))
63+ ->openUrlInNewTab (),
6564 Tables \Actions \DeleteAction::make (),
6665 ]),
6766 ])
You can’t perform that action at this time.
0 commit comments