SQLSTATE[HY000]: General error: 1364 Field ‘phone’ doesn’t have a default value (SQL: insert into `products` (`name`, `email`, `address`, `image`, `updated_at`, `created_at`) values (amti, kuam@gmail.com, sdafasdf, 642917381.jpg, 2021–05–11 10:58:35, 2021–05–11 10:58:35))
When I’m submit form then got General error field doesn’t have default value. let’s go to solve this.
👉 1 step go to your database and put change none>to Null and save.
![](https://miro.medium.com/max/2444/1*Zbsljf54T7i52ltaXTUC5g.png)
Lets go to phpmyadmin
![](https://miro.medium.com/max/1366/1*YsfnX5FEnXN9iu1bpW1Jjw.png)
👉 Click on Structure
![](https://miro.medium.com/max/1366/1*exRlrUyPQlBmv_L_IdBkzg.png)
Click on change and change all field to None to Null and save
![](https://miro.medium.com/max/1366/1*5WuhrjZmdV7gF7r3T5Bnpw.png)
Set Null and click on save button
![](https://miro.medium.com/max/1366/1*mZEfhEoH86McY9ejPgMhcA.png)
👁👁 Now its error has been solved and your data has been stored successfully.
![](https://miro.medium.com/max/1366/1*GHQjKJWQAhnhWxHcQSbCwQ.png)
Thanks
Latest posts by rajeshkumar (see all)