Get a remote laravel log file

In this tutorial James Mills shows us how to create a Laravel task to SSH into our server and download a copy of the production laravel.log file.

Now you can run a simple Artisan command from your local machine or from within your Homestead VM and it will connect to production, pull down the log file and store it in ‘app/storage.logs/production.log’.