当我使用时,我只想运行一个迁移文件
$php artisan migrate --path=/database/migrations/2019_03_20_101338_create_calendars_table.php
我收到此错误
Whoops\Exception\ErrorException : Illuminate\Filesystem\Filesystem::requireOnce(): Failed opening required 'C:\xampp\htdocs\project/C:/Program Files/Git/database/migrations/2019_03_20_10 1338_create_calendars_table.php' (include_path='C:\xampp\php\PEAR')
最佳答案
删除 URI 中的第一个斜杠,第一个斜杠表示 URI 是绝对的而不是相对的。
$php artisan migrate --path=database/migrations/2019_03_20_101338_create_calendars_table.php
关于laravel - laravel 特定表迁移时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55259014/