dkulyk/nova-tabs
最新稳定版本:1.1.9
Composer 安装命令:
composer require dkulyk/nova-tabs
包简介
Another Laravel Nova Tabs Package
README 文档
README
Installation
You can install the package in to a Laravel app that uses Nova via composer:
composer require dkulyk/nova-tabs
Usage
Tabs Panel
You can group Fields of a Resource into Tabs.
// in app/Nova/Resource.php use DKulyk\Nova\Tabs; public function fields() { return [ // ... new Tabs('Tabs', [ new Panel('Balance', [ Number::make('Balance', 'balance')->onlyOnDetail(), Number::make('Total', 'total')->onlyOnDetail(), ]), 'Other Info' => [ Number::make('Paid To Date', 'paid_to_date')->onlyOnDetail(), ], ]), // ... ]; }
Tabs Panel with Toolbar
If you are only using a Tabs without another default Panel, you can call withToolbar method like in Panel.
// in app/Nova/Resource.php use DKulyk\Nova\Tabs; public function fields(Request $request) { return [ (new Tabs('Contact Details', [ 'Address' => [ ID::make('Id', 'id')->rules('required'), Text::make('Email', 'email')->sortable(), Text::make('Phone', 'phone')->sortable(), ], 'Relations' => [ BelongsTo::make('User'), MorphTo::make('Contactable')->types([ Client::class, Invoice::class, ]), ] ]))->withToolbar(), ]; }
Relationship Tabs
You can also group Relations into Tabs.
// in app/Nova/Resource.php use DKulyk\Nova\Tabs; public function fields(Request $request) { return [ // ... new Tabs('Relations', [ HasMany::make('Invoices'), HasMany::make('Notes'), HasMany::make('Contacts') ]), // ... ]; }
Combine Fields and Relations in Tabs
use DKulyk\Nova\Tabs; public function fields(Request $request) { return [ (new Tabs(__('Client Custom Details'), [ new Panel(__('Details'), [ ID::make('Id', 'id')->rules('required')->hideFromIndex(), Text::make('Name', 'name'), ]), HasMany::make('Invoices') ]) ]; }
Customization
By default, the Tabs component moves the search input and the create button to the tabs. If you have a lot of tabs, you can move them back down to its own line:
// in app/Nova/Resource.php use DKulyk\Nova\Tabs; public function fields(Request $request) { return [ // ... (new Tabs('Relations', [ HasMany::make('Invoices') ]))->defaultSearch(true), // ... ]; }
If you want to hide card label you can use ->hideLabel() for Tabs panel.
Set ->defaultSearch(true) to revert it to its default.
dkulyk/nova-tabs 适用场景与选型建议
dkulyk/nova-tabs 是一款 基于 Vue 开发的 Composer 扩展包,目前已累计 126.84k 次下载、GitHub Stars 达 58, 最近一次更新时间为 2026 年 01 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 dkulyk/nova-tabs 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 dkulyk/nova-tabs 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 126.84k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 58
- 点击次数: 26
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04





