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.

Published On Nov. 5th 2014

Tell, Don't Ask

Run Time 19:29

Download

As a general rule of thumb, it's best to tell your objects what to do, rather than asking them for their state, and then deciding what to call next, based upon this output. This is referred to as "Tell, Don't Ask." Let's about it more in this lesson.