1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-04 16:10:08 +01:00
This commit is contained in:
NasirNobin
2022-03-22 01:10:06 +06:00
parent ee6a17ea57
commit 794fbc0c57
3 changed files with 35 additions and 3 deletions

4
valet
View File

@@ -84,11 +84,11 @@ then
elif [[ "$1" = "php" ]]
then
php "${@:2}"
$(php "$DIR/cli/valet.php" isolated --site=$(basename "$PWD") --binary) "${@:2}"
elif [[ "$1" = "composer" ]]
then
php /usr/local/bin/composer "${@:2}"
$(php "$DIR/cli/valet.php" isolated --site=$(basename "$PWD") --binary) $(which composer) "${@:2}"
# Finally, for every other command we will just proxy into the PHP tool
# and let it handle the request. These are commands which can be run