├── .gitignore ├── .php_cs ├── .travis.yml ├── Dockerfile ├── LICENSE ├── README.md ├── composer.json ├── phpci.yml ├── phpunit.xml ├── src ├── Rutorika │ └── Sortable │ │ ├── BelongsToSortedMany.php │ │ ├── BelongsToSortedManyTrait.php │ │ ├── MorphToSortedMany.php │ │ ├── MorphToSortedManyTrait.php │ │ ├── SortableController.php │ │ ├── SortableException.php │ │ ├── SortableServiceProvider.php │ │ ├── SortableTrait.php │ │ └── ToSortedManyTrait.php └── config │ └── sortable.php └── tests ├── .gitkeep ├── M2mSortableTest.php ├── MorphToManySortableTest.php ├── SortableControllerSpecificDatabaseTest.php ├── SortableControllerTest.php ├── SortableGroupTraitTest.php ├── SortableTestBase.php ├── SortableTraitTest.php ├── SortableTraitWithChangedFieldTest.php ├── SortableTraitWithSpecificDatabaseTest.php ├── migrations ├── 2014_06_13_004832_create_entities_table.php ├── 2014_12_31_004833_create_entitiesgroup_table.php ├── 2015_06_12_004834_create_m2m_entities_table.php ├── 2015_06_12_004835_create_m2m_related_entities_table.php ├── 2015_06_12_004836_create_m2m_entity_m2m_related_entity_table.php ├── 2015_12_18_000000_create_morph_to_many_entities_table.php ├── 2015_12_18_000000_create_morph_to_many_related_entities_table.php ├── 2015_12_18_000000_create_morphables_table.php ├── 2015_12_19_000000_create_entities_with_changed_field_table.php └── 2017_08_25_184500_create_entities_with_specific_database_table.php └── stubs ├── M2mEntity.php ├── M2mRelatedEntity.php ├── MorphToManyEntityOne.php ├── MorphToManyEntityTwo.php ├── MorphToManyRelatedEntity.php ├── SortableEntity.php ├── SortableEntityWithChangedField.php ├── SortableEntityWithSpecificDatabase.php └── SortableGroupEntity.php /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/.gitignore -------------------------------------------------------------------------------- /.php_cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/.php_cs -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/.travis.yml -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/composer.json -------------------------------------------------------------------------------- /phpci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/phpci.yml -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/phpunit.xml -------------------------------------------------------------------------------- /src/Rutorika/Sortable/BelongsToSortedMany.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/src/Rutorika/Sortable/BelongsToSortedMany.php -------------------------------------------------------------------------------- /src/Rutorika/Sortable/BelongsToSortedManyTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/src/Rutorika/Sortable/BelongsToSortedManyTrait.php -------------------------------------------------------------------------------- /src/Rutorika/Sortable/MorphToSortedMany.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/src/Rutorika/Sortable/MorphToSortedMany.php -------------------------------------------------------------------------------- /src/Rutorika/Sortable/MorphToSortedManyTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/src/Rutorika/Sortable/MorphToSortedManyTrait.php -------------------------------------------------------------------------------- /src/Rutorika/Sortable/SortableController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/src/Rutorika/Sortable/SortableController.php -------------------------------------------------------------------------------- /src/Rutorika/Sortable/SortableException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/src/Rutorika/Sortable/SortableException.php -------------------------------------------------------------------------------- /src/Rutorika/Sortable/SortableServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/src/Rutorika/Sortable/SortableServiceProvider.php -------------------------------------------------------------------------------- /src/Rutorika/Sortable/SortableTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/src/Rutorika/Sortable/SortableTrait.php -------------------------------------------------------------------------------- /src/Rutorika/Sortable/ToSortedManyTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/src/Rutorika/Sortable/ToSortedManyTrait.php -------------------------------------------------------------------------------- /src/config/sortable.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/src/config/sortable.php -------------------------------------------------------------------------------- /tests/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/M2mSortableTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/tests/M2mSortableTest.php -------------------------------------------------------------------------------- /tests/MorphToManySortableTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/tests/MorphToManySortableTest.php -------------------------------------------------------------------------------- /tests/SortableControllerSpecificDatabaseTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/tests/SortableControllerSpecificDatabaseTest.php -------------------------------------------------------------------------------- /tests/SortableControllerTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/tests/SortableControllerTest.php -------------------------------------------------------------------------------- /tests/SortableGroupTraitTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/tests/SortableGroupTraitTest.php -------------------------------------------------------------------------------- /tests/SortableTestBase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/tests/SortableTestBase.php -------------------------------------------------------------------------------- /tests/SortableTraitTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/tests/SortableTraitTest.php -------------------------------------------------------------------------------- /tests/SortableTraitWithChangedFieldTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/tests/SortableTraitWithChangedFieldTest.php -------------------------------------------------------------------------------- /tests/SortableTraitWithSpecificDatabaseTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/tests/SortableTraitWithSpecificDatabaseTest.php -------------------------------------------------------------------------------- /tests/migrations/2014_06_13_004832_create_entities_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/tests/migrations/2014_06_13_004832_create_entities_table.php -------------------------------------------------------------------------------- /tests/migrations/2014_12_31_004833_create_entitiesgroup_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/tests/migrations/2014_12_31_004833_create_entitiesgroup_table.php -------------------------------------------------------------------------------- /tests/migrations/2015_06_12_004834_create_m2m_entities_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/tests/migrations/2015_06_12_004834_create_m2m_entities_table.php -------------------------------------------------------------------------------- /tests/migrations/2015_06_12_004835_create_m2m_related_entities_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/tests/migrations/2015_06_12_004835_create_m2m_related_entities_table.php -------------------------------------------------------------------------------- /tests/migrations/2015_06_12_004836_create_m2m_entity_m2m_related_entity_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/tests/migrations/2015_06_12_004836_create_m2m_entity_m2m_related_entity_table.php -------------------------------------------------------------------------------- /tests/migrations/2015_12_18_000000_create_morph_to_many_entities_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/tests/migrations/2015_12_18_000000_create_morph_to_many_entities_table.php -------------------------------------------------------------------------------- /tests/migrations/2015_12_18_000000_create_morph_to_many_related_entities_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/tests/migrations/2015_12_18_000000_create_morph_to_many_related_entities_table.php -------------------------------------------------------------------------------- /tests/migrations/2015_12_18_000000_create_morphables_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/tests/migrations/2015_12_18_000000_create_morphables_table.php -------------------------------------------------------------------------------- /tests/migrations/2015_12_19_000000_create_entities_with_changed_field_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/tests/migrations/2015_12_19_000000_create_entities_with_changed_field_table.php -------------------------------------------------------------------------------- /tests/migrations/2017_08_25_184500_create_entities_with_specific_database_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/tests/migrations/2017_08_25_184500_create_entities_with_specific_database_table.php -------------------------------------------------------------------------------- /tests/stubs/M2mEntity.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxfrommars/rutorika-sortable/HEAD/tests/stubs/M2mEntity.php -------------------------------------------------------------------------------- /tests/stubs/M2mRelatedEntity.php: -------------------------------------------------------------------------------- 1 |