Download the PHP package tokarskimarcin/laravel-admin-ext-select-inline-create without Composer
On this page you can find all versions of the php package tokarskimarcin/laravel-admin-ext-select-inline-create. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tokarskimarcin/laravel-admin-ext-select-inline-create
More information about tokarskimarcin/laravel-admin-ext-select-inline-create
Files in tokarskimarcin/laravel-admin-ext-select-inline-create
Package laravel-admin-ext-select-inline-create
Short Description Inline creating entity while in another form.
License MIT
Homepage https://github.com/tokarskimarcin/laravel-admin-ext-select-inline-create
Informations about the package laravel-admin-ext-select-inline-create
laravel-admin-ext/SelectInlineCreate
Use select field to create entity if not exists. Created entity is selected immediately.
Requires
- "php": ">=7.2.0",
- "encore/laravel-admin": "~1.6"
- "tokarskimarcin/laravel-admin-ext-modal-form": "^0.1"
Installation
Publishing
Execute command below to publish package. It will copy vendor resources to your application public directory.
php artisan admin:select-inline-create:publish
Update
To update/overwrite assets of package add option to publishing command.
Documentation
Usage
SelectInlineCreate field can be used by executing method on Admin/Form.
While entity is created it looks for the option by searching url with id
parameter in query string.
Use SelectResponse
class and static function get
to return proper response.
Methods
SelectInlineCreate has same methods as regular Select from Admin
1. setSearchUrl
If ajax(...)
function it's not used so setSearchUrl
should be used.
If is used then setSearchUrl
is executed inside of ajax and searching url is the same as ajax.
Search url can be overwritten if it's set by ajax function. To do that setSearchUrl
must be executed after ajax
.
All versions of laravel-admin-ext-select-inline-create with dependencies
encore/laravel-admin Version ~1.6
tokarskimarcin/laravel-admin-ext-modal-form Version ^0.1.5