Support the ongoing development of Laravel.io →
Database Eloquent Forms
Last updated 2 years ago.
0

make the field nullable and default null

Last updated 8 years ago.
0

So basically every field in my table needs to have a default value of NULL if no value is being inserted into it?

0

This is not how it should work - it was working fine before and now it asks for this

0

it's an easy fix!

just add


'strict' => false,

into config/database.php within mysql array

0

Sign in to participate in this thread!

Eventy

Your banner here too?

jerauf jerauf Joined 16 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.