Laravel Migrations - Issues while creating timestamps
I have been facing the same error. Given solutions does work properly still i want to help laravel developers. Simply add a following line to config/database.php
'mysql' => array(
'strict' => true
),
This is due to MySQL not accepting zero as a valid default date and thus the table creation fails a constraint check on creation.
You probably have NO_ZERO_DATE
enabled in your MySQL configuration. Setting this to off will allow you to create the table or alternatively remove the default 0 value or change it to CURRENT_TIMESTAMP
.
You can find out more about this exact issue here: https://github.com/laravel/framework/issues/3602