Use system wide package manager to install a package and install Laravel for the current user. (#618)
This commit is contained in:
parent
af00a902cd
commit
e8d98c6418
@ -26,7 +26,12 @@ go)
|
|||||||
;;
|
;;
|
||||||
laravel)
|
laravel)
|
||||||
echo -e "Installing PHP and Laravel...\n"
|
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)
|
python)
|
||||||
echo -e "Installing Python...\n"
|
echo -e "Installing Python...\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user