How to set Context in a Laravel Application

Philip Brown has a new Laravel tutorial on setting context:

In today’s tutorial I will show you how to check the business rules of the application when a request comes in, and then authoritatively set the context so the rest of your application code can rely upon it.