Tag: laravel

  • 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 (http://laravel.com/docs/5.1/migrations#modifying-columns). Schema::table(‘mytable’, function($table) { $table->integer(‘mycolumn’); } The following command will update db schema. php artisan migrate