My laravel 5.4 app contain complex database structure with many relations, so I'm willing to know it is ok to use Schema::enableForeignKeyConstraints(); and Schema::disableForeignKeyConstraints(); in down() function. Because if I run command php artisan migrate:reset then there are relations and delete is not possible...
Complete example:
public function down()
{
Schema::disableForeignKeyConstraints();
Schema::drop('blog');
Schema::enableForeignKeyConstraints();
}
As described is this recommended to use because of Database functionality?
via lionis_user1