How to set Context in a Laravel Application

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.