Skip to content

Instantly share code, notes, and snippets.

@nasrulhazim
Created December 2, 2019 01:31
Show Gist options
  • Save nasrulhazim/005fe91297353e45290cde6829bc3c87 to your computer and use it in GitHub Desktop.
Save nasrulhazim/005fe91297353e45290cde6829bc3c87 to your computer and use it in GitHub Desktop.
Initialise Laravel Application in Bash Script
#!/bin/bash
composer install
if [ ! -f .env ]; then
cp .env.example .env
php artisan key:generate
else
echo ".env file already created."
fi
if [ ! -L public/storage ]; then
php artisan storage:link
else
echo "Symlink to storage already created."
fi
php artisan reload:cache
php artisan reload:db
php artisan passport:install
yarn install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment