yuges-code / laravel-orderable
๐ถ Order generation for Laravel eloquent models
Fund package maintenance!
yuges-code
Requires
- php: ^8.4
- yuges-code/laravel-package: ^1.0
Requires (Dev)
- orchestra/testbench: ^10.0
README

Laravel Orderable
๐ถ Order generation for Laravel eloquent models
๐ฟ Installation
โ Composer
You can install the package via composer:
composer require yuges-code/laravel-orderable
โ Publishing Config
Publishing the config file (config/orderable.php) is optional:
php artisan vendor:publish --provider="Yuges\Orderable\Providers\OrderableServiceProvider" --tag="orderable-configs"
โ Changing Migrations
You need to change the migration to create the order column:
$table->unsignedInteger('order')->default(1)->index();
or
$table->order();
โ Running Migrations
After that, you need to run migrations:
php artisan migrate
๐งช Running Tests
โ PHPUnit tests
To run tests, run the following command:
composer test
โ๏ธ License
The MIT License (MIT). Please see License File for more information.
๐๐ผโโ๏ธ Authors Information
Created in 2025 by: