PHP code example of outl1ne / nova-simple-repeatable
1. Go to this page and download the library: Download outl1ne/nova-simple-repeatable library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
outl1ne / nova-simple-repeatable example snippets
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
}