Skip to content

Instantly share code, notes, and snippets.

@JoDeveloper
Created December 30, 2019 08:37
Show Gist options
  • Save JoDeveloper/a2b5301787ec975bd6ddcb617377f471 to your computer and use it in GitHub Desktop.
Save JoDeveloper/a2b5301787ec975bd6ddcb617377f471 to your computer and use it in GitHub Desktop.
#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