LaravelPackages.net
Acme Inc.
Toggle sidebar
arsenaltech/nova-tab

A Laravel Nova field.

131.084
73
0.2
About arsenaltech/nova-tab

arsenaltech/nova-tab is a Laravel package for a laravel nova field.. It currently has 73 GitHub stars and 131.084 downloads on Packagist (latest version 0.2). Install it with composer require arsenaltech/nova-tab. Discover more Laravel packages by arsenaltech or browse all Laravel packages to compare alternatives.

Last updated

Laravel Nova Tab Total Downloads

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()),


Star History Chart