-
-
Save 5a494d/ee4da21730f051ba19be9d847cda3dd2 to your computer and use it in GitHub Desktop.
Create a new Laravel application
This file contains hidden or 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
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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