imumz / nova-accordion-field
A Laravel Nova field.
Installs: 543
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 1
Language:Vue
Requires
- php: >=7.1.0
This package is auto-updated.
Last update: 2024-11-29 06:29:39 UTC
README
NovaAccordionField
A simple vue.js accordion component for Laravel Nova.
Installation
composer require imumz/nova-accordion-field
Usage
use Imumz\NovaAccordionField\NovaAccordionField;
...
public function fields(Request $request)
{
$array = [
0 => [
'name' => 'John Doe',
'text' => 'john@example.com'
],
1 => [
'name' => 'Jane Doe',
'text' => 'jane@example.com'
],
2 => [
'name' => 'Tom Doe',
'text' => 'tom@example.com'
],
];
return [
NovaAccordionField::make('')
->data($array)
->title('name')
->description('text')
];
}