Published 1 week ago by yu0307
We probably all aware that we can share data with view composer, but that data is loaded into the blade file, I can't seem to utilize that data while inside the controller. Furthermore, I seen people tried to use a class with needed data and extend that class. but I don't really want to extend every controller to just use a global data between them.
Is there a better way? once again, Not sharing with views but controllers.
Thank you very much
Yah, but I would imagine having session data set anywhere in my project and becoming very hard to track down where that data was actually set. like a central place like view composer where I will always know that my Data is set from that class. I guess I'm really looking for a view composer kind of deal that will work in a controller as well.
Man, Understand what I'm asking, I asked for a way to share data. through methods, facade, helpers , session or whatever, that's for you to tell me. You got me explain my question over and over and now it seems you got your feeling hurt just because you didn't know what to say. I wish there is a way to mute a person.
@yu0307 was this just a "spam", question to waste people's valuable time? You yourself said
I'm just lazy
And you said
we can share data with view composer, but that data is loaded into the blade file, I can't seem to utilize that data while inside the controller.
But you meant code. So what a waste of time.
I will mute myself from any further communication with you. I promise.