Laravel: Email administrator if error occurred

Ever wanted to receive an email straight after a 500 error occurs in your Laravel or OctoberCMS website? This little code snippet does just that.

It sends an email straight after a client has encountered a 500 error.