Specify an Absolute Path in the Path Option of the Artisan Migrate Command
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.
Related articles
- How to Generate and Display QR Codes with Laravel and React (qrcode.react)
- How to Run Code After a Successful Stripe Payment Using Webhooks
- Install Laravel Cashier (Stripe)
- Why the 419 Error Is Thrown When Using Fetch in Laravel?
- Laravel + shadcn/ui Pagination
- Interacting with PostgreSQL from a Laravel Project
- Inertia.js + shadcn/ui Form on Laravel
- Set Up Laravel with a React Project
- Install Bootstrap in a Laravel Project
- Use a Test Database in PHPUnit