PHPackages                             vadiasov/ordering - 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. vadiasov/ordering

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

vadiasov/ordering
=================

Laravel package to order rows of DB table by 'drug and drop'

2.0.1(8y ago)029MITHTMLPHP &gt;=7.0

Since Mar 12Pushed 8y agoCompare

[ Source](https://github.com/vadiasov/ordering)[ Packagist](https://packagist.org/packages/vadiasov/ordering)[ RSS](/packages/vadiasov-ordering/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (5)Dependencies (1)Versions (7)Used By (0)

vadiasov/ordering
=================

[](#vadiasovordering)

Laravel package to order rows of DB table by 'drug and drop'.

Goals
-----

[](#goals)

1. Create ordering of given rows of DB table and save ordering in the same table.
2. Ordering is made by Drug and Drop technology.

Workflow
--------

[](#workflow)

1. Parent page has set of rows.
2. Row has column 'order' (or other with the same sense).
3. Parent page has button "Order".
4. After clicking on the button "Order" page "Ordering" is open (child page).
5. Making of ordering.
6. Child page has button "Save and back".
7. Clicking on the button "Save and back" leads to parent page.

Config of parent page
---------------------

[](#config-of-parent-page)

- Column name of "order" column
- DB table name
- Array of columns that are shown in the child page
- Title of "Save and back" button.

Example:

```
