Laravel 5.5 lesson - 5 Migrations -Part 3 How to add new columns to existing tables

Published on 27 Jul 2018 / In PHP

In this video I have discussed about how to add new columns to existing table using migrations.

Command used in this video:

## to migrate new migration files to database

php artisan migrate

## undo the previous migrations

php artisan migrate:rollback

## create new migration file to add new column to existing table

php artisan make:migration add_phone_number_to_customers_table --table=customers

Github link:

Show more
0 Comments sort Sort by

Up next