How to set view file path in laravel?

后端 未结 3 799
半阙折子戏
半阙折子戏 2020-12-18 08:04

I have a directory structure for laravel app like this:

app/
   admin/
      controllers/
      views/ -> for admin views
   ...
   views/ -> for front         


        
3条回答
  •  余生分开走
    2020-12-18 08:57

    In the latest version 6 i am doing it this ways:

    View::getFinder()
         ->setPaths([
               base_path('themes/frontend/views'), 
               base_path('themes/admin/views')]
         )
    

提交回复
热议问题