Answer the question
In order to leave comments, you need to log in
Why doesn't default() work?
In the migration I do the following I
start the migration, in the database the line "Default" is "Not set"
When saving, it throws an error$table->string('title')->default(null);
Integrity constraint violation: 1048 Column 'title' cannot be null
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question