Support the ongoing development of →
posted 10 years ago
Last updated 2 years ago.

Sounds to me like you are talking about Traits. I'm currently reading about this new feature to php>=5.4, so i can point you to couple resources, but i can't give you code that will solve your problem.

Blog post 1

PHP Site

But in my understanding you can extract that 'like' feature to trait and then you can add that trait to any number of controllers.

Last updated 2 years ago.

Sign in to participate in this thread!


Your banner here too?


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.