Skip to content

Instantly share code, notes, and snippets.

@iKunalmathur
Last active September 5, 2022 15:18
Show Gist options
  • Save iKunalmathur/a1162295de69ff9beea2e92b997fbbba to your computer and use it in GitHub Desktop.
Save iKunalmathur/a1162295de69ff9beea2e92b997fbbba to your computer and use it in GitHub Desktop.
Laravel Project Setup
# Clone Project
git clone <git_url> <folder_name>
# Install Packages
composer install --no-scripts --no-dev
composer install --optimize-autoloader --no-dev
# Folder Permissions
sudo chmod 777 -R bootstrap
sudo chmod 777 -R storage
# Create .env file
mv .env.example .env
# Edit .env file
nano .env
# Genrate New Key
php artisan key:generate
# Link Storage
php artisan storage:link
# Clear All Cache
php artisan optimize:clear
# Make Cache
php artisan optimize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment