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 Aug. 7th 2014

What's a Trait?

Run Time 6:26

Download

As of PHP 5.4, we now have a mechanism for reusing code, called Traits. If this term is new to you, give me five minutes to explain what it is, and when you should leverage them.