laravelwebdev/repeatable

A Laravel Nova field.

1.0.0 2025-01-16 14:52 UTC

This package is auto-updated.

Last update: 2025-01-16 14:54:47 UTC


README

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 laravelwebdev/repeatable

Usage

use Laravelwebdev\Repeatable\Repeatable;

public function fields(Request $request) {
    Repeatable::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
}

Credits

License

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