【发布时间】:2019-08-11 01:02:59
【问题描述】:
当我使用时,我只想运行一个迁移文件
$php artisan migrate --path=/database/migrations/2019_03_20_101338_create_calendars_table.php
我收到此错误
Whoops\Exception\ErrorException : Illuminate\Filesystem\Filesystem::requireOnce(): 无法打开所需的 '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')
【问题讨论】:
-
试试下面的路径:
--path=database/migrations/2019_03_20_101338_create_calendars_table.php所以去掉“database”前面的第一个斜线。