Well, you can just use a blade partial with the static content right? It's nothing more than adding some more HTML to the sidebar to display the extra widget.
Nov 6, 2019
4
Level 2
laravel how to use view composers to build something like widgets
HI, i would like to help me with, how i could accomplish something like widgets of sidebar, that widgets should consist of dynamic and static, i know it is simple to create dynamic by using view composers, by querying db and passing result the page(s), you want.
but what i want is, how i could also list static content, and dynamic content in the sidebar, for example, 5 top most read articles, and a static content, saying, we are hiring a developer,,,,,,
i want to know the most, accurate way that can be accomplished
i think u got my point.
Please or to participate in this conversation.