jcadima
5/1/2018 - 7:39 PM

add additional columns



https://laracasts.com/discuss/channels/laravel/add-new-column-to-existing-table

php artisan make:migration add_project_id_to_permissions_table --table=permissions
<?php

Schema::table('permissions', function(Blueprint $table) {
  // To add column order:
  $table->string('title')->after('your-column-name');
    $table->integer('project_id')->unsigned(); // add this line
});