Edit your applications's database config file config/database.php In mysql array, set strict => false to disable MySQL's strict mode
Here is what the above code is Doing:
1. We’re creating a new instance of the User model.
2. We’re setting the name and email attributes on the user, just like we would if we were using the create method.
3. We’re calling the save method to insert the user into the database.