Why doesn't default()?

In the migration, do the following
$table->string('title')->default(null);
Start the migration, the database is the string "default" is Not configured
28c535783c.jpg
When you save, throws error
Integrity constraint violation: 1048 Column 'title' cannot be null

The version of laravel the latest. That kind of nonsense?
March 12th 20 at 08:07
1 answer
March 12th 20 at 08:09
Solution
What's larval? Need to learn SQL.

->nullable()and not ->default(null)

Find more questions by tags LaravelMySQL