The Laravel Feature Most Developers Don’t Know Exists (and Should) (3)

You’ve been writing the same chained if-statements for years. Laravel has had a cleaner solution since forever — and almost nobody uses it.