Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the --dev option when installing Laravel Breeze (or any other package)?

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.

like image 719
Vörös Imi Avatar asked Jan 19 '26 00:01

Vörös Imi


2 Answers

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.

like image 175
Psonbre Avatar answered Jan 20 '26 13:01

Psonbre


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.

like image 25
Anthony Rave Avatar answered Jan 20 '26 12:01

Anthony Rave



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!