Update a mysql database field with empty value in laravel

By | August 20, 2017

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

Model-Employee