This is an old revision of the document!
Add Column to DB
- Have
artisancreate php template.- Artisan is a php script itself so you must run this from the directory where
artisanlives (the root directory for the project. - Artisan knows how to fill out the template based on the name you give it. Example command:
php artisan make:migration add_new_fields_to_users_tablewill tell Artisan to base the template off theuserstable
- in
database/migrationsyou'll find the file you created. Edit the template using other migrations as a model for what you want - to run the migration:
php artisan migrate