how to set field type of date of birth in laravel 1

how to set field type of date of birth in laravel

$table->date('date_of_birth');

Here is what the above code is Doing:
1. We’re creating a new table called users.
2. We’re adding a column called id to the table.
3. We’re adding a column called name to the table.
4. We’re adding a column called email to the table.
5. We’re adding a column called password to the table.
6. We’re adding a column called date_of_birth to the table.

Similar Posts