Download the PHP package sudomabider/laravel-xeditable without Composer
On this page you can find all versions of the php package sudomabider/laravel-xeditable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sudomabider/laravel-xeditable
More information about sudomabider/laravel-xeditable
Files in sudomabider/laravel-xeditable
Package laravel-xeditable
Short Description x-editable integration with Laravel
License MIT
Informations about the package laravel-xeditable
A simple package to make xeditable easier to use within Laravel.
Installation
That's it.
Instructions
-
Have your x-editable based requests extend
Sudomabider\LaravelXEditable\XEditableRequest
. This class will first validate the initial request to make sure it's a valid x-editable request, and then rearrange the request parameters into a normal form request, e.g. from{name: 'gender', value: 'male'}
into{gender: 'male'}
-
You may restrict the names allowed from a request
This is particularly useful when multiple x-editable requests are grouped into a single class.
-
Define validation rules as you would in a normal form request:
You may want to return different rules depending on which parameter is present: