Home > Article > Backend Development > How to add a new field in Laravel, how to specify it after a certain field instead of adding it at the end
As shown in the picture: I want to add the city field to the items table, but the default is to add it to the end. How to specify that it is added to the location field in the items table?
As shown in the picture: I want to add the city field to the items table, but the default is to add it to the end. How to specify that it is added to the location field in the items table?
$table->string('city')->after('location');