Use system wide package manager to install a package and install Laravel for the current user. (#618)

This commit is contained in:
Brosseau Valentin
2025-08-10 14:17:47 +02:00
committed by GitHub
parent af00a902cd
commit e8d98c6418

View File

@@ -26,7 +26,12 @@ go)
;;
laravel)
echo -e "Installing PHP and Laravel...\n"
bash -c "$(curl -fsSL https://php.new/install/linux)"
yay -S php composer --noconfirm
composer global require laravel/installer
echo 'export PATH="$HOME/.config/composer/vendor/bin:$PATH"' >> "$HOME/.bashrc"
source "$HOME/.bashrc"
echo "PHP, Composer, and Laravel have been installed successfully."
echo "You can now run: laravel new myproject"
;;
python)
echo -e "Installing Python...\n"