LaravelPackages.net
Acme Inc.
Toggle sidebar
optimistdigital/nova-simple-repeatable

A Laravel Nova simple repeatable rows field.

154.221
74
3.0.0
About optimistdigital/nova-simple-repeatable

optimistdigital/nova-simple-repeatable is a Laravel package for a laravel nova simple repeatable rows field.. It currently has 74 GitHub stars and 154.221 downloads on Packagist (latest version 3.0.0). Install it with composer require optimistdigital/nova-simple-repeatable. Discover more Laravel packages by optimistdigital or browse all Laravel packages to compare alternatives.

Last updated

Nova Simple Repeatable

Latest Version on Packagist Total Downloads

This Laravel Nova package allows you to create simple horizontal rows of fields that the user can add/remove.

Requirements

  • php: >=8.0
  • laravel/nova: ^5.0

Features

A Laravel Nova simple repeatable rows field.

Screenshots

Form page

Installation

Install the package in to a Laravel app that uses Nova via composer:

composer require outl1ne/nova-simple-repeatable

Usage

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:

php artisan vendor:publish --provider="Outl1ne\NovaSimpleRepeatable\SimpleRepeatableServiceProvider" --tag="translations"

You can then edit the strings to your liking.

Credits

License

Nova Simple Repeatable is open-sourced software licensed under the MIT license.

Star History Chart