Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Create a new Laravel application
laravel new $1
cd $1
composer install
yarn install
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

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 

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


To add a sqlite database for rapid development run touch database/database.sqlite

For getting set up with MySQL check out: Build an online forum with Laravel — Initial Setup and Seeding (Part 1)

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