composer require --dev "xethron/migrations-generator"
Here is what the above code is Doing:
1. We’re using the require command to add a new dependency to our project.
2. The –dev flag tells Composer that this dependency is only needed for development.
3. The “xethron/migrations-generator” argument is the name of the package we want to install.