Looking to hire Laravel developers? Try LaraJobs

laravel-declarative-schema maintained by micheljonkman

Last update
2024/08/26 17:48 (dev-master)
License
Downloads
43

Comments
comments powered by Disqus

Laravel Declarative Schema

Laravel integration for my declarative-schema package.

Usage

To create a new schema file call the command below.

php artisan make:schema table_name

For more information on how to write schema files, take a look at declarative-schema package.

And in order to migrate them you can either use the normal migrate command:

php artisan migrate

Or use the specific command to migrate schema files.

php artisan migrate:schema

Rollbacks don't do anything for schema files since you can just revert the file to its previous state and migrate again.