light2000 / laravel-migration-columns-sort
supplement for laravel migration add sorted columns
v1.2.0
2022-03-31 02:36 UTC
Requires
- php: >=7.0.0
- illuminate/database: >=5.4
- illuminate/support: >=5.4
README
- support artisan migrate with sorted columns added
- AUTO_INCREMENT and PRIMARY KEY is always in the head
- 'created_at', 'updated_at', 'deleted_at' is always at the bottom
Install
Require this package with composer using the following command:
composer require light2000/laravel-migration-columns-sort
just modify use
statement from
use Illuminate\Support\Facades\Schema;
to
use Light2000\LaravelMigrationColumnsSort\Schema;
in migrate files.
Thanks
PS.
sorry for my bad english