Skip to content

Instantly share code, notes, and snippets.

@internoma
Created July 4, 2014 11:33
Show Gist options
  • Save internoma/3085b95ac507f595b8f8 to your computer and use it in GitHub Desktop.
Save internoma/3085b95ac507f595b8f8 to your computer and use it in GitHub Desktop.
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