Support the ongoing development of Laravel.io →
posted 10 years ago
Views

Hello,

I have read how to set different paths or namespaces for views, but I think this is not a proper solution for me. What I would like to do its to set a view base path for mobile or desktop devices, so in the view controllers I don't need to make any change (with namespaces it would be something like: View::make('mobile::myview') for mobile devices).

That would be great to set the path in the routes file and don't touch any view controller. Any ideas for that? Maybe just Config::set the view path?

Thanks in advance! :)

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

ayoze ayoze Joined 20 May 2014

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.

© 2025 Laravel.io - All rights reserved.