PHPackages                             webakula-admin-ext/grid-sortable-city - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. webakula-admin-ext/grid-sortable-city

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

webakula-admin-ext/grid-sortable-city
=====================================

Sort the grid data by drag and drop rows

1.1.1(5y ago)018MITPHPPHP &gt;=7.0.0

Since Jun 25Pushed 4y agoCompare

[ Source](https://github.com/Webakula/grid-sortable)[ Packagist](https://packagist.org/packages/webakula-admin-ext/grid-sortable-city)[ Docs](https://github.com/webakula/grid-sortable)[ RSS](/packages/webakula-admin-ext-grid-sortable-city/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (4)Used By (0)

laravel-admin grid-sortable
===========================

[](#laravel-admin-grid-sortable)

This extension can help you sort by dragging the rows of the data list, the front end is based on [jQueryUI sortable](https://jqueryui.com/sortable/), and the back end is based on [eloquent-sortable](https://github.com/spatie/eloquent-sortable)

这个插件可以帮助你通过拖动数据列表的行来进行排序，前端基于[jQueryUI sortable](https://jqueryui.com/sortable/), 后端基于[eloquent-sortable](https://github.com/spatie/eloquent-sortable)

[![Kapture 2019-06-25 at 10 14 51](https://user-images.githubusercontent.com/1479100/60064224-50b97080-9732-11e9-8023-431fc6fe81a5.gif)](https://user-images.githubusercontent.com/1479100/60064224-50b97080-9732-11e9-8023-431fc6fe81a5.gif)

Installation
------------

[](#installation)

```
composer require laravel-admin-ext/grid-sortable -vvv
```

Publish asserts

```
php artisan vendor:publish --provider="Encore\Admin\GridSortable\GridSortableServiceProvider"
```

Usage
-----

[](#usage)

Define your model

```
