migration date type code example Example: how to set field type of date of birth in laravel $table->date('date_of_birth');