Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Create a new Laravel application
#!/bin/bash
laravel new $1
cd $1
composer install
yarn install
touch README.md
cp .env.example .env
git init
git add -A
git commit -m 'Initial commit'
php artisan key:generate
php artisan config:clear
php artisan config:cache
Owner

connor11528 commented Jul 11, 2017

Save this file where you store your projects. Then run chmod command to make sure you have permissions to run it

chmod 700 create_laravel_app.sh 

Then you can create Laravel apps with the command below. Substitute APP_NAME for the title of your brand spankin new Laravel project

./create_laravel_app.sh APP_NAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment