arsenaltech/nova-tab
Composer 安装命令:
composer require arsenaltech/nova-tab
包简介
A Laravel Nova field.
README 文档
README
Custom Nova field to render tabs
Installation
Install the package into a Laravel app that uses Nova with Composer:
composer require arsenaltech/nova-tab
Usage
Add the Tabs trait to your App\Nova\Resource class.
use Arsenaltech\NovaTab\Tabs; abstract class Resource extends NovaResource { use Tabs;
Add the field to your resource in the fields method:
use Arsenaltech\NovaTab\NovaTab; new NovaTab('User Information', [ Text::make('Name') ->sortable() ->rules('required', 'max:255'), Text::make('Email') ->sortable() ->rules('required', 'email', 'max:255') ->creationRules('unique:users,email') ->updateRules('unique:users,email,{{resourceId}}')]), new NovaTab('Address Information', $this->addressFields()), new NovaTab('Other Information', $this->otherFields()),
统计信息
- 总下载量: 131.12k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 74
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-08-29