Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Laravel 5 quick install bash!
#!/bin/sh
# Laravel 5 new project setup bash script.
# Inspired by Mitchell van Wijngaarden
# Extended by John in 't Hout
projectname=$1
git clone -o laravel -b develop https://github.com/laravel/laravel.git ${projectname} >/dev/null
cd ${projectname}
git checkout --orphan master
rm -rf .git
git init
git add .
git commit -m "Initial commit"
composer install >/dev/null
npm install >/dev/null
bower install
php artisan key:generate
php artisan app:name ${projectname}
echo -e "############################
All Done! Crafted a new Laravel 5 app for you! Called ${1}
############################";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment