Skip to content

[2.x] Add --composer option to the install command#607

Merged
taylorotwell merged 3 commits intolaravel:2.xfrom
josephmiclaus:patch-1
Jan 8, 2021
Merged

[2.x] Add --composer option to the install command#607
taylorotwell merged 3 commits intolaravel:2.xfrom
josephmiclaus:patch-1

Conversation

@josephmiclaus
Copy link
Contributor

Adds the optional --composer option to the install command. This option may receive a path pointing to a specific composer binary. As proposed in PR #588.

php artisan jetstream:install livewire --composer=composer.phar

php artisan jetstream:install livewire --teams --composer=composer.phar

This is useful for systems where no global composer binary is installed.

Using this flag will use the local composer.phar binary installed at the base path instead of the global composer binary command.

This is useful for systems where composer is not installed globally.
@josephmiclaus josephmiclaus changed the title Add optional --composer option to the install command Add --composer option to the install command Jan 7, 2021
@driesvints driesvints changed the title Add --composer option to the install command [2.x] Add --composer option to the install command Jan 7, 2021
@taylorotwell
Copy link
Member

Why do you not have Composer globally available?

@taylorotwell taylorotwell merged commit 092c3d0 into laravel:2.x Jan 8, 2021
@josephmiclaus
Copy link
Contributor Author

josephmiclaus commented Jan 10, 2021

@taylorotwell personally, I used to run into permission issues where I was forced to use sudo (which I later learned should be avoided, https://getcomposer.org/root)

But I also found it practical to have it included for developers who don't necessarily have it installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants