You can install the package via composer:
composer require yuges-code/laravel-orderable
Publishing the config file (config/orderable.php) is optional:
php artisan vendor:publish --provider="Yuges\Orderable\Providers\OrderableServiceProvider" --tag="orderable-configs"
You need to change the migration to create the order column:
$table->unsignedInteger('order')->default(1)->index();
or
$table->order();
After that, you need to run migrations:
php artisan migrate
To run tests, run the following command:
composer test
The MIT License (MIT). Please see License File for more information.
Created in 2025 by:
