Laravel Community Tools by Tighten
Laravel Nova icon Nova Packages

Installation Instructions

composer require arsenaltech/nova-tab

Readme

Laravel Nova Tab

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()),
Back to Top
Added 7 years ago
Last updated 7 Years Ago
Version 0.2
Composer
arsenaltech/nova-tab
GitHub stars 73
Packagist downloads 130,471

Favorites

14 users favorited

Rating

4.00
(out of 5)
★★★★★
★★★★
★★★
★★
6 ratings

Contributors

Brought to you by Tighten

Issues/Feature Requests Stats Package Ideas