From 50759b1cf36d1d82c70310771b1c2a39fd41f9fe Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Thu, 7 Jul 2022 17:18:36 +0800 Subject: [PATCH] fix admin torrent url --- app/Filament/Resources/Torrent/TorrentResource.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Filament/Resources/Torrent/TorrentResource.php b/app/Filament/Resources/Torrent/TorrentResource.php index 6eb2fb36..c91d477e 100644 --- a/app/Filament/Resources/Torrent/TorrentResource.php +++ b/app/Filament/Resources/Torrent/TorrentResource.php @@ -63,8 +63,8 @@ class TorrentResource extends Resource Tables\Columns\TextColumn::make('basic_category.name')->label(__('label.torrent.category')), Tables\Columns\TextColumn::make('name')->formatStateUsing(function (Torrent $record) { $name = sprintf( - '
%s
', - Str::limit($record->name, 40) + '
%s
', + $record->id, Str::limit($record->name, 40) ); $tags = sprintf(' 
%s
', $record->tagsFormatted);