https://github.com/yuges-code/laravel-orderable
Order generation for Laravel eloquent models ๐ถ โ๏ธ ๐ข
https://github.com/yuges-code/laravel-orderable
laravel orders package php yuges
Last synced: 8 months ago
JSON representation
Order generation for Laravel eloquent models ๐ถ โ๏ธ ๐ข
- Host: GitHub
- URL: https://github.com/yuges-code/laravel-orderable
- Owner: yuges-code
- License: mit
- Created: 2025-04-15T15:04:55.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-04-30T10:28:35.000Z (10 months ago)
- Last Synced: 2025-05-22T02:13:08.582Z (9 months ago)
- Topics: laravel, orders, package, php, yuges
- Language: PHP
- Homepage: https://yuges-code.github.io/laravel-orderable/
- Size: 625 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
Build
Project
Quality
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](LICENSE) for more information.
# ๐๐ผโโ๏ธ Authors Information
Created in 2025 by:
- [Yuges-code](https://github.com/yuges-code)
- [All Contributors](../../contributors)