Create migration file to a specific folder in Laravel

Create a migration file using the php artisan command to the specified path in Laravel

Laravel comes with some handy CLI tools to manage some major parts in an application. One of which  is the for creating migration files that contain all the necessary commands and fields to create the tables needed by the application to run smoothly. You can use the php artisan make:migration command to create new migration files. It is recommended to use one migration file per database table.

But if you want to create a new migration file with Laravel in a folder other than the default (database/migration) then you can use the option --path at the end of the artisan command.  With the --path option you specify which folder will contain the new migration file. If the path does not exist then the folder will be auto generated.