Skip to content

denis-kisel/repeator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Repeator

Package for laravel-admin-widgets. This package is help to make dynamic fields for laravel-admin-widgets.

Installation

Via Composer

$ composer require denis-kisel/repeator

Add service provider in the config/app.php file

/*
 * Package Service Providers...
 */
DenisKisel\Repeator\RepeatorServiceProvider::class,

Put code in the app/admin/bootstrap.php file

Encore\Admin\Form::extend('repeat', DenisKisel\Repeator\Repeator::class);

Usage

In the laravel-admin-widgets files

$form->repeat('items', function (NestedForm $form) {
    $form->text('item', 'Item');
});