DEV Community

Mohammed Samgan Khan
Mohammed Samgan Khan

Posted on • Edited on • Originally published at dev.to

What is the best way to implement a view layer logic?

What's the best way to implement a view layer login like a graph or something that is to be used in more than one place in laravel?

Top comments (6)

Collapse
 
alchermd profile image
John Alcher

Would you further clarify what exactly are you trying to do? On the surface, I feel like you're looking for reusable components in your Blade templates. This could be cleanly done with components and slots. Or perhaps you're looking for something else?

Collapse
 
msamgan profile image
Mohammed Samgan Khan

Thanks for the response, John. Components and slots do the work but not quite what I have in mind. I am looking more like Cell from CakePHP.

 
msamgan profile image
Mohammed Samgan Khan

thanks a lot.
I guess I can work on this. thanks a lot and I will be waiting for the article...
:P

 
msamgan profile image
Mohammed Samgan Khan

thanks, Dainius.
BTW do you have any working example of the same?