mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-28 06:57:22 +08:00
update filamentphp basic
This commit is contained in:
@@ -6,13 +6,14 @@ use App\Models\Torrent;
|
||||
use Closure;
|
||||
use Filament\Tables;
|
||||
use Filament\Widgets\TableWidget as BaseWidget;
|
||||
use Illuminate\Contracts\Support\Htmlable;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
|
||||
class LatestTorrents extends BaseWidget
|
||||
{
|
||||
protected static ?int $sort = 2;
|
||||
|
||||
protected function getTableHeading(): string | Closure | null
|
||||
protected function getTableHeading(): string | Htmlable | null
|
||||
{
|
||||
return __('dashboard.latest_torrent.page_title');
|
||||
}
|
||||
|
||||
@@ -6,13 +6,14 @@ use App\Models\User;
|
||||
use Closure;
|
||||
use Filament\Tables;
|
||||
use Filament\Widgets\TableWidget as BaseWidget;
|
||||
use Illuminate\Contracts\Support\Htmlable;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
|
||||
class LatestUsers extends BaseWidget
|
||||
{
|
||||
protected static ?int $sort = 1;
|
||||
|
||||
protected function getTableHeading(): string | Closure | null
|
||||
protected function getTableHeading(): string | Htmlable | null
|
||||
{
|
||||
return __('dashboard.latest_user.page_title');
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ class TorrentTrend extends LineChartWidget
|
||||
|
||||
protected static ?string $pollingInterval = null;
|
||||
|
||||
protected function getHeading(): ?string
|
||||
public function getHeading(): ?string
|
||||
{
|
||||
return __('dashboard.torrent_trend.page_title');
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ class UserTrend extends LineChartWidget
|
||||
|
||||
protected static ?string $pollingInterval = null;
|
||||
|
||||
protected function getHeading(): ?string
|
||||
public function getHeading(): ?string
|
||||
{
|
||||
return __('dashboard.user_trend.page_title');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user