Support the ongoing development of →
Laravel Routing Architecture
Last updated 5 months ago.


Yes, you can. You can supply your own template name in a variable, but that template has to exist already. Even though you'd have to specify all the variables that need to be passed to your template in your controller nonetheless. What background do you have that makes having template names in the controller feel different to you?


Sign in to participate in this thread!

Full Stack Europe

Your banner here too?

D Davis ddavis-unc Joined 12 Oct 2021


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

Your logo here?

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

© 2022 - All rights reserved.