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

I'd define a class property that would handle this. Something like $namespace or similar. You can then use:

View::make($this->namespace.".admin.index")

Last updated 2 years ago.
0

Ok, that does make sense, I did have that thought also but I wasn't 100% sure if that was the best way to handle it.

I think ill do it though! Thanks for your help!

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.