Laravel - Incident Logs Demo
This is an example project showing how you can create and store log data up until the point of failure where the user will be presented with an incident number while separate files are stored per incident.
You can read the accompanying article here