PHP doesn't support generics, but oh... I wish it did. We do, however, have the next best thing: our tooling supports generics! It can be confusing at first, but let me show you the entire workflow.
Watch Full Larabits Series on: https://laracasts.com/bits?teacher=jwmcpeak
Watch thousands of videos, track your progress, and participate in a massive Laravel community at Laracasts.com.
Laracasts: https://laracasts.com
Laracasts Twitter: https://twitter.com/laracasts
Jeffrey Way Twitter: https://twitter.com/jeffrey_way