Skip to content

Instantly share code, notes, and snippets.

@5a494d
Forked from connor11528/create_laravel_app.sh
Last active October 12, 2017 13:51
Show Gist options
  • Save 5a494d/ee4da21730f051ba19be9d847cda3dd2 to your computer and use it in GitHub Desktop.
Save 5a494d/ee4da21730f051ba19be9d847cda3dd2 to your computer and use it in GitHub Desktop.
Create a new Laravel application
#!/bin/bash
composer create-project laravel/laravel $1 --prefer-dist
cd $1
composer install
node 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
@5a494d
Copy link
Author

5a494d commented Oct 12, 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