Creating type-safe configs in Laravel

A pattern that I like to use for type-safe configs.