after I've manually deleted a table in mysql, I run the command:

php artisan migrate

and I get this:

Nothing to migrate.

it only works the first time, how to re-run the migration in laravel?

推荐答案

Laravel keeps a record of migrations that have been run. You need to go to the migrations table and delete the migration record. Laravel does this so that it knows which migrations have been run so that it doesn't run them again and so that in the case of a rollback, it knows the last batch of migrations which were done.

This may help https://laravel.com/docs/5.6/migrations

Laravel相关问答推荐

如何在 Laravel 中使用 return 停止 Trait php 的执行

如何在Laravel中创建自定义单项集合

根据路径的开头重定向

如何通过单击进入 vs 代码中的类

Laravel | 使用select查询

RouteCollection.php 第 219 行中的 MethodNotAllowedHttpException

Laravel 错误ReflectionException-类 App\Http\Kernel 不存在

判断 Laravel 中是否存在唯一索引键

Laravel + SQLite = SQLSTATE[HY000]一般错误:8次try 写入只读数据库

laravel 基本路径

如何从 laravel 控制器执行外部 shell 命令?

导入文件时如何跳过第一行

Array_unique 上一个 laravel Eloquent的集合

如何从 laravel 中的现有数据库创建迁移

Laravel:自定义或扩展通知 - 数据库模型

如何运行artisan命令计划:在托管服务器上运行? (Laravel )

如果 Laravel 中的值不为空,如何验证输入字段

无法捕获 Carbon 抛出的异常

如何在laravel中 for each 用户生成唯一的随机值并将其添加到数据库中

Laravel 5.2 |测试 UploadedFile 在发布后错过了 $test 值?