Support the ongoing development of Laravel.io →
Configuration Views Architecture
Last updated 2 years ago.
0

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.

0

Is there any way of doing that without having a huge if else if statement for each possible view?

0

Sign in to participate in this thread!

Eventy

Your banner here too?

andy1547 andy1547 Joined 26 May 2015

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.