Created
July 4, 2014 11:33
-
-
Save internoma/3085b95ac507f595b8f8 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
getlaravelfn() | |
{ | |
if [ -z "$1" ] | |
then | |
echo 'Error: No project name entered.' | |
return | |
else | |
curl -L -o laravel-master.zip https://github.com/laravel/laravel/archive/master.zip; | |
unzip laravel-master.zip; | |
rm laravel-master.zip; | |
mv laravel-master $1; | |
cd $1; | |
git init; | |
git remote add upstream -t master [email protected]:laravel/laravel.git; | |
composer install; | |
php artisan key:generate; | |
chmod -R 777 ./app/storage; | |
fi | |
} | |
alias getlaravel=getlaravelfn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment