Laravel by default will log errors and messages into a directory on disk, which isn’t ideal, because Heroku uses an ephemeral filesystem, that means that any changes to the filesystem whilst the dyno is running only last until that dyno is shut down or restarted. Each dyno boots with a clean copy of the filesystem from the most recent deploy. This is similar to how many container-based systems, such as Docker, operate.
Change the log destination on Heroku:
heroku config:set LOG\_CHANNEL=errorlog
Now you can tail the logs live:
heroku logs -t
That’s it. 🚀