Created
December 30, 2019 08:37
-
-
Save JoDeveloper/a2b5301787ec975bd6ddcb617377f471 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#create new laravel project | |
function nlp() { | |
DIR="$HOME/projects" | |
if [ -d "$DIR/$1" ]; then | |
echo "Directory $DIR/$1 exists already." | |
return 1 | |
fi | |
cd $DIR | |
composer create-project laravel/laravel --prefer-dist $1 | |
cd $1 | |
npm install | |
git init | |
git add -A | |
git commit -m "Initial commit" | |
code . | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment