light2000/laravel-migration-columns-sort

supplement for laravel migration add sorted columns

v1.2.0 2022-03-31 02:36 UTC

This package is auto-updated.

Last update: 2025-07-29 02:24:50 UTC


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