Thursday, April 13, 2017

Laravel 5.4 save NULL to database not working

The following code results in an empty value inside the database and when I get it out of the database its an empty String.

$customer->update(['company' => NULL]);



via Ilario Engler

Advertisement