Support the ongoing development of Laravel.io →
Configuration Views

I have the following set up that I want to try to perform:

App
   Sitename
  - Admin (sitename/admin)
     - models
     - controllers
     - views
     - other folders
   - Site (sitename/site)
     - models
     - controllers
     - views
     - other folders

Now the models and controllers can be namespaced, but with the views folder the location is set within the config/views.php file. So how if at all can I get admin views to look in the admin folder and the site views look into the site folder?

If there's. Better way to perform what I'm doing be great to here.

Last updated 3 years ago.
0

Maybe not completely what are you trying to accomplish but you could try architecture described here

http://kirkbushell.me/laravel-4-an-alternative-application-workflow/

http://kirkbushell.me/laravel-4-an-alternative-application-workflow-part-2/

TL;DR:

  • Create one (workbench) package for "admin"

  • Create second package for "public" part of site

OR

  • Leave "public" part in default App/ folder
Last updated 3 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.

© 2025 Laravel.io - All rights reserved.