Skip to content

Instantly share code, notes, and snippets.

@CerealKiller97
Last active May 17, 2020 17:11
Show Gist options
  • Save CerealKiller97/412af2dfdbe441ba56e74f260f5d0d3a to your computer and use it in GitHub Desktop.
Save CerealKiller97/412af2dfdbe441ba56e74f260f5d0d3a to your computer and use it in GitHub Desktop.
Laravel Local Setup
#!/bin/bash
echo "Copying .env file..."
if [ ! -f ".env" ]; then
scp .env.example .env
fi
echo "Composer install..."
composer install
clear
echo "Generating Application key..."
php artisan key:generate
clear
echo "Installing npm dependencies..."
npm i
clear
echo "Running npm run dev for static files..."
npm run dev
clear
echo "Migrating and seeding database..."
php artisan migrate:fresh --seed
clear
echo "Generating ide:helper stuff"
php artisan ide-helper:generate
php artisan ide-helper:meta
echo $'\e[32;1mFinished, you are good to go. Happy coding :).'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment