Support the ongoing development of Laravel.io →
Installation Configuration
Last updated 4 months ago.
0

Composer docs, https://getcomposer.org/doc/04-schema.md#require verses #require-dev

  "require-dev": {
        "barryvdh/laravel-debugbar": "1.*"
    },
Last updated 4 months ago.
0

Thanks! Is there similar functionality for the scripts section like post-install-cmd?

Last updated 4 months ago.
0

kcristella said:

Thanks! Is there similar functionality for the scripts section like post-install-cmd?

If your asking if there is a post-install-cmd, then yes. Actually a large list of events for scripts section, https://getcomposer.org/doc/articles/scripts.md#event-names

Last updated 4 months ago.
0

TerrePorter said:

kcristella said:

Thanks! Is there similar functionality for the scripts section like post-install-cmd?

If your asking if there is a post-install-cmd, then yes. Actually a large list of events for scripts section, https://getcomposer.org/doc/articles/scripts.md#event-names

Really looking to know if there is a way to run one set of post-install-cmd for dev and another for production.

Last updated 4 months ago.
0

Really looking to know if there is a way to run one set of post-install-cmd for dev and another for production.

Not built into composer no, you could build this into your post-install-cmd script.

Last updated 4 months ago.
0

Having it in Composer doesn't really hurt, unless for a few KBs in diskspace. You can just set the ServiceProvider in your local config only (using append_config()) and it won't get loaded. (But if you really really care about that size, you could set it to require-dev indeed)

Last updated 4 months ago.
0

Sign in to participate in this thread!

Full Stack Europe

Your banner here too?

kcristella kcristella Joined 11 Oct 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.