Back to the Learning

Back to the Learning!

Laracasts is packed full with over 1,000 lessons just like this one.
Sign up to get full access or log in to your account and sit back.

Better Interfaces with Ternaries

Episode 5 Run Time 4:41

How on Earth could the ternary operator improve my interfaces? Well, as it turns out, they can do this very thing quite easily! Choose a sensible default, and then allow for an override. It's the best of both worlds.

Publish Date: June 8, 2017