ngiraud / nova-header-field
Simple field to add a header to separate panels in the form.
Installs: 16 829
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 2
Forks: 2
Open Issues: 1
Language:Vue
Requires
- php: >=7.1.0
- laravel/nova: *
This package is auto-updated.
Last update: 2024-12-16 08:40:48 UTC
README
Simple field to add a header to separate panels in the form.
Installation
You can install the package in to a Laravel app that uses Nova via composer:
composer require ngiraud/nova-header-field
Usage
Add the field to your Nova resource fields
method :
public function fields(Request $request) { return [ (new Panel(__('General'), [ FormHeader::make(__('General')), Text::make(__('Firstname'), 'firstname'), Text::make(__('Lastname'), 'lastname'), Text::make(__('Email'), 'email'), ... ]))->withToolbar(), new Panel(__('Address'), [ FormHeader::make(__('Address')), Text::make(__('Address 1'), 'address_1'), Text::make(__('Address 2'), 'address_2'), Text::make(__('Postal Code'), 'postal_code'), Text::make(__('City'), 'city'), Text::make(__('Country'), 'country'), ... ]), ]; }
Changelog
Please see CHANGELOG for more information on what has changed recently.
Security
If you discover any security related issues, please email contact@ngiraud.me instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.