try this in migration file
$table->string('comment',512)->default('No Tag')->nullable();
its value would always be null instead of the default value
nullable() allows the attribute to be null, with default() the attribute will take the default value instead of null
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community