Laravel inserts `0000-00-00` instead of null when DB is set to `->nullable()` and `->default(null)`

前端 未结 0 515
无人共我
无人共我 2021-02-15 08:51

I\'m using Laravel 5.1 on a Homestead Vagrant box, PHP 7.2.14 on Ubuntu 18.04 with MySql 5.7.25.

I have created a migration with this:

$table->date(\'e         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题