Download the PHP package naxon/nova-field-sortable without Composer
On this page you can find all versions of the php package naxon/nova-field-sortable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package nova-field-sortable
Laravel Nova Sortable Field
Description
This field adds reordering functionality to your resource's index using the awesome eloquent-sortable package by the great people of Spatie.
Requrements
- Laravel 5.6+ with Nova.
- spatie/eloquent-sortable (If not already installed, this package will install if for you and all you have to do is follow the installation instructions).
Installation
This package can be installed through Composer.
Usage
- Follow the usage instructions on the eloquent-sortable repository to make your model sortable.
- Use the
Naxon\NovaFieldSortable\Concerns\SortsIndexEntries
trait in your Nova Resource. - Add a public static property called
$defaultSortField
to your resource, containing your sorting column (I recomment adding it in your mainapp/Nova/Resource.php
file). - Add the
Naxon\NovaFieldSortable\Sortable
field to your Nova Resourcefields
method, using a label and your primary key column.
Example
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of nova-field-sortable with dependencies
PHP Build Version
Package Version
The package naxon/nova-field-sortable contains the following files
Loading the files please wait ....