Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Yogendra0Sharma/5e3f369383c1a2a44a41df0c9f94f9dc to your computer and use it in GitHub Desktop.
Save Yogendra0Sharma/5e3f369383c1a2a44a41df0c9f94f9dc to your computer and use it in GitHub Desktop.
Debugging Laravel applications on LEMP

Logging is done in two places:

  1. storage/logs/laravel.log
  2. /var/log/nginx/error.log

Clear logs with:

> laravel.log
sudo bash -c '>error.log' #for nginx

Clear cache with

php artisan cache:clear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment