Controllers are designed to be used in conjunction with URIs.
If you need something different, write your own middleware and or service class, then return a view from that.
Is there any way of doing that without having a huge if else if statement for each possible view?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community