Skip to content

Commit fa6ecb5

Browse files
committed
initialize Laravel Nova Repeatable field package with basic structure and assets
0 parents  commit fa6ecb5

21 files changed

+21046
-0
lines changed

README.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Nova 5 Repeatable
2+
3+
This [Laravel Nova](https://nova.laravel.com/) package allows you to create simple horizontal rows of fields that the user can add/remove.
4+
5+
## Requirements
6+
7+
- `php: >=8.0`
8+
- `laravel/nova: ^5.0`
9+
10+
## Features
11+
12+
A Laravel Nova simple repeatable rows field.
13+
14+
## Screenshots
15+
16+
![Form page](images/repeatable.png)
17+
18+
## Installation
19+
20+
Install the package in to a Laravel app that uses [Nova](https://nova.laravel.com) via composer:
21+
22+
```bash
23+
composer require laravelwebdev/repeatable
24+
```
25+
26+
## Usage
27+
28+
```php
29+
use Laravelwebdev\Repeatable\Repeatable;
30+
31+
public function fields(Request $request) {
32+
Repeatable::make('Users', 'users', [
33+
Text::make('First name'),
34+
Text::make('Last name'),
35+
Email::make('Email'),
36+
])
37+
->canAddRows(true) // Optional, true by default
38+
->canDeleteRows(true), // Optional, true by default
39+
}
40+
```
41+
42+
## Credits
43+
44+
- [Simple Repetable](https://github.com/outl1ne/nova-simple-repeatable)
45+
46+
## License
47+
48+
Nova Simple Repeatable is open-sourced software licensed under the [MIT license](LICENSE.md).

composer.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name": "laravelwebdev/repeatable",
3+
"description": "A Laravel Nova field.",
4+
"keywords": [
5+
"laravel",
6+
"nova"
7+
],
8+
"license": "MIT",
9+
"require": {
10+
"php": "^8.1",
11+
"illuminate/support": "^10.0|^11.0"
12+
},
13+
"require-dev": {
14+
"laravel/nova": "^5.0",
15+
"laravel/nova-devtool": "^1.2"
16+
},
17+
"repositories": [
18+
{ "type": "composer", "url": "https://nova.laravel.com" }
19+
],
20+
"autoload": {
21+
"psr-4": {
22+
"Laravelwebdev\\Repeatable\\": "src/"
23+
}
24+
},
25+
"extra": {
26+
"laravel": {
27+
"providers": [
28+
"Laravelwebdev\\Repeatable\\FieldServiceProvider"
29+
]
30+
}
31+
},
32+
"config": {
33+
"sort-packages": true
34+
},
35+
"minimum-stability": "dev",
36+
"prefer-stable": true
37+
}

0 commit comments

Comments
 (0)