skip to Main Content

I haven’t found any description about what the –dev option does when running this command:

composer require laravel/breeze --dev

Does anybody know? Or where to look? Is it package specific, or Breeze-specific?

Tried the documentation, googling, also StackOverflow search, but nothing.

2

Answers


  1. Adding the flag --dev to the composer require will add this package to the require-dev section. It’s commonly used for packages used for development such as laravel/pint.

    Login or Signup to reply.
  2. It is a way to add dependencies only to your development build. You should use it when you need the dependency for development but not for production.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search