Skip to content

Commit b0acacc

Browse files
committed
update readme
1 parent 6bf1966 commit b0acacc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
[![Quality Score][ico-code-quality]][link-code-quality]
99
[![Total Downloads][ico-downloads]][link-downloads]
1010

11-
This is a package for [Laravel Backpack](https://laravel-backpack.readme.io/docs) and provides CRUD field types which allow to create and edit a related CRUD entity on-the-fly while adding/editing another.
11+
This is a package for [Laravel Backpack](https://laravel-backpack.readme.io/docs) and provides CRUD field types which allow to create and edit a related CRUD entity on-the-fly while adding/editing/deleting another.
1212

1313
![Screenshot](https://webfactor.de/files/modal_1.png)
1414

@@ -58,9 +58,8 @@ CRUD::resource('entity', 'EntityCrudController')->with(function () {
5858
The trait/route will handle the following requests for you:
5959

6060
- search on triggered entity
61-
- retrieve the HTML for the create and edit modal
62-
- store entity from modal
63-
- update entity from modal
61+
- retrieve the HTML for the create/edit/delete modal
62+
- store/update/destroy foreign entity
6463

6564
### Available Fields
6665

@@ -69,7 +68,7 @@ There are two field types available in this package which allow you an instant c
6968
- [select2_from_ajax](https://laravel-backpack.readme.io/docs/crud-fields#section-select2_from_ajax)
7069
- [select2_from_ajax_multiple](https://laravel-backpack.readme.io/docs/crud-fields#section-select2_from_ajax_multiple)
7170

72-
For `select2_from_ajax` also "edit" is available.
71+
> Edit and delete is only available for `select2_from_ajax`!
7372
7473
### Field Definition
7574

@@ -120,6 +119,7 @@ Example:
120119
121120
'create' => false
122121
'edit' => false
122+
'delete' => false
123123
'create_modal' => 'path to custom create modal'
124124
'edit_modal' => 'path to custom edit modal'
125125
'attribute' => '...' // see auto-fill below in readme

0 commit comments

Comments
 (0)