Tag Archives: Setting null values only on certain fields using laravel

Update a mysql database field with empty value in laravel

Below code explains how to update a db field with null value using Laravel create a database called tbl_employee with few fields as follows.for creating the table you can use the below sql statement.

Created one controller UpdateController and one model called Employee model UpdateController