Hanan Alhasan
Hanan Alhasan

Reputation: 300

error in specific table migration laravel

I want to run just one migration file, when I use

$php artisan migrate  --path=/database/migrations/2019_03_20_101338_create_calendars_table.php

I get this error

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')

Upvotes: 2

Views: 3171

Answers (1)

namelivia
namelivia

Reputation: 2735

Delete the first slash from the URI, the first slash means the URI is absolute instead of a relative one.

$php artisan migrate --path=database/migrations/2019_03_20_101338_create_calendars_table.php

Upvotes: 4

Related Questions