arsenaltech/nova-header

A Laravel Nova field.

Installs: 6 431

Dependents: 0

Suggesters: 0

Security: 0

Stars: 10

Watchers: 3

Forks: 1

Open Issues: 0

Language:Vue

dev-master 2018-11-06 17:45 UTC

This package is auto-updated.

Last update: 2024-11-07 07:14:03 UTC


README

Custom Nova field to add field header when using tabs https://github.com/arsenaltech/nova-tab

Installation

Install the package into a Laravel app that uses Nova with Composer:

composer require arsenaltech/nova-header

Usage

Add the field to your resource in the fields method:

new NovaTab('User Information', [
            NovaHeader::make('Example Title'),
            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()),