Support the ongoing development of Laravel.io →
Laravel Routing Architecture
Last updated 2 weeks ago.
0

Hey!

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?

0

Sign in to participate in this thread!

Full Stack Europe

Your banner here too?

D Davis D Davis ddavis-unc Joined 12 Oct 2021

Moderators

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 Laravel.io - All rights reserved.