https://github.com/outl1ne/nova-simple-repeatable
A Laravel Nova simple repeatable rows field.
https://github.com/outl1ne/nova-simple-repeatable
Last synced: 10 months ago
JSON representation
A Laravel Nova simple repeatable rows field.
- Host: GitHub
- URL: https://github.com/outl1ne/nova-simple-repeatable
- Owner: outl1ne
- License: mit
- Created: 2020-12-18T13:28:42.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-07-17T13:49:47.000Z (over 1 year ago)
- Last Synced: 2024-09-21T21:24:25.470Z (over 1 year ago)
- Language: Vue
- Size: 2.11 MB
- Stars: 73
- Watchers: 6
- Forks: 42
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Nova Simple Repeatable
[](https://packagist.org/packages/outl1ne/nova-simple-repeatable)
[](https://packagist.org/packages/outl1ne/nova-simple-repeatable)
This [Laravel Nova](https://nova.laravel.com/) package allows you to create simple horizontal rows of fields that the user can add/remove.
## Requirements
- `php: >=8.0`
- `laravel/nova: ^4.0`
## Features
A Laravel Nova simple repeatable rows field.
## Screenshots

## Installation
Install the package in to a Laravel app that uses [Nova](https://nova.laravel.com) via composer:
```bash
composer require outl1ne/nova-simple-repeatable
```
## Usage
```php
use Outl1ne\NovaSimpleRepeatable\SimpleRepeatable;
public function fields(Request $request) {
SimpleRepeatable::make('Users', 'users', [
Text::make('First name'),
Text::make('Last name'),
Email::make('Email'),
])
->canAddRows(true) // Optional, true by default
->canDeleteRows(true), // Optional, true by default
}
```
## Localization
The translations file can be published by using the following publish command:
```bash
php artisan vendor:publish --provider="Outl1ne\NovaSimpleRepeatable\SimpleRepeatableServiceProvider" --tag="translations"
```
You can then edit the strings to your liking.
## Credits
- [Tarvo Reinpalu](https://github.com/tarpsvo)
## License
Nova Simple Repeatable is open-sourced software licensed under the [MIT license](LICENSE.md).