laravel 5.1: add column to table

php artisan migratemake add_mycolumn_to_mytable

A new migration file will be created.

Add the code that updates the schema (

Schema::table('mytable', function($table)

The following command will update db schema.

php artisan migrate


Leave a Reply

Your email address will not be published. Required fields are marked *