web-application-framework laravel

Specify an absolute path in the path option of the artisan migrate command.

Environment

  • Laravel 11

If you want to specify an absolute path in the --path option of the Laravel artisan migrate command, add the --realpath option and set its value to true:

php artisan migrate --realpath=true --path=<The absolute path of migrations>

If you omit the --realpath option or set it to false, you should specify a relative path instead.