承接 alessandro-nuunes/filament-tabbed-dashboard 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

alessandro-nuunes/filament-tabbed-dashboard

最新稳定版本:v1.0.1

Composer 安装命令:

composer require alessandro-nuunes/filament-tabbed-dashboard

包简介

A Filament plugin for FilamentTabbedDashboard.

README 文档

README

Tabbed dashboard for Filament via a trait. No config; uses Filament’s default components.

Members Management Interface

Requirements

  • PHP 8.2+
  • Laravel 11 or 12
  • Filament 4 or 5

Installation

composer require alessandro-nuunes/filament-tabbed-dashboard

The ServiceProvider is auto-registered. Registering the plugin on the panel is optional.

Usage

In your Dashboard (e.g. app/Filament/Admin/Pages/Dashboard.php):

  1. Use the HasTabbedDashboard trait.
  2. Implement getTabDefinitions() with your tabs.
use AlessandroNuunes\FilamentTabbedDashboard\HasTabbedDashboard;
use Filament\Pages\Dashboard;

class Dashboard extends Dashboard
{
    use HasTabbedDashboard;

    public function getTabDefinitions(): array
    {
        return [
            [
                'id'      => 'overview',
                'label'   => 'Overview',
                'icon'    => 'heroicon-o-home',
                'widgets' => [StatsOverview::class],
                'visible' => true,
            ],
            [
                'id'      => 'analytics',
                'label'   => 'Analytics',
                'icon'    => 'heroicon-o-chart-bar',
                'widgets' => [OtherWidget::class],
                'visible' => true,
            ],
        ];
    }
}

The trait provides the package view. Optionally extend AlessandroNuunes\FilamentTabbedDashboard\Pages\TabbedDashboard and implement only getTabDefinitions().

Tab structure

Key Required Description
id yes Unique identifier
label yes Tab label
widgets yes Array of Widget classes
visible no true (default) or false
icon no Heroicon name
badge no Number, string, or callable
badgeColor no e.g. 'primary', 'warning'
badgeTooltip no Badge tooltip

Tab appearance (optional)

Override these methods on your Dashboard:

Method Default Effect
getTabbedTabsContained() false true = tabs inside a box
getTabbedTabsStyle() 'default' 'default', 'pills', or 'boxed'
getTabbedTabsShowIcons() true false = hide icons
getTabbedTabsVertical() false true = vertical tabs

For pills or boxed, the plugin only adds the CSS class fi-tabbed-dashboard--{style}. To change the look, add CSS in your theme (e.g. resources/css/filament/admin/theme.css). Without that CSS, tabs use Filament’s default style.

License

MIT.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-02-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固