Black Friday: the Laravel testing course is $149 instead of $249, through Dec 7. See the course →
logo

Should I enforce Horizon authorization locally?

I think you should

Joel Clermont
Joel Clermont
2025-08-15

From our daily Laravel tips email. Get the next one in your inbox.

Over the years, I have been burned in countless unpredictable ways when my local environment was different from my production environment. My tests were passing, my manual review of a feature worked great, yet it broke in production.

In today's video, I'm going to show one example of this with Horizon's authorization logic, and how you can override the default to make your local environment exactly match your other environments.

Watch Now (5 min)

And after watching, don't forget to subscribe to our YouTube channel, so you don't miss future videos.

Here to help,

Joel

P.S. How confident do you feel that your local environment matches production? If you're feeling a bit unsure, book a call and get some expert help.

Want a tip like this in your inbox every weekday?

Each one takes less than 2 minutes to read. Join 4,000+ Laravel developers who already get them.

email
No spam. Only real-world advice.
Toss a coin in the jar if you found this helpful.