Database

From Wiki | Valse Technologies
Revision as of 07:33, 20 November 2019 by Salwani.nur (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

1. Create a table

  - In composer, type 'php artisan make:migration create_table'
  - To make migration, type 'php artisan migrate'

2. Creating a column

  - In migration files, under Schema function, put datatype and the column name
  - For example: "$table->string('email');"