laravel vytvoriť migráciu
// use the make:migration Artisan command to generate a database migration
php artisan make:migration create_flights_table
// use --create to indicate whether the migration will be creating a new table
php artisan make:migration create_flights_table --create=flights
// use --table to indicate the table name
php artisan make:migration add_destination_to_flights_table --table=flights
vytvorenie migrácie Laravelu
php artisan make:migration create_users_table
vrátenie migrácie remeselníka
php artisan migrate:rollback
laravel urobiť migráciu
php artisan make:migration CreateUsersTable
Laravel migrácie z existujúcej databázy
To Generate Laravel Migrations from an existing database.
Use the following package.
https://github.com/Xethron/migrations-generator
laravel vytvoriť migráciu
php artisan make:migration add_votes_to_users_table --table=users
php artisan make:migration create_users_table --create=users