Looking to hire Laravel developers? Try LaraJobs

laravel-orderable maintained by yuges-code

Description
📶 Order generation for Laravel eloquent models
Author
Last update
2025/04/30 12:28 (dev-main)
License
Downloads
202

Comments
comments powered by Disqus

💿 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: