You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public function up(): void
{
Schema::table(YOUR-TABLE-NAME, function (Blueprint $table) {
$table->integer('sort_order')
->default(0)->change();
});
}
public function down(): void
{
Schema::table(YOUR-TABLE-NAME, function (Blueprint $table) {
$table->integer('sort_order')->change();
});
}
I get an error when creating a new entry using Nova 3.29.
General error: 1364 Field 'sort_order' doesn't have a default value
Model:
Nova Resource:
use HasSortableRows;
Any solutions for this?
The text was updated successfully, but these errors were encountered: