How change view folder in Laravel5?

前端 未结 1 1590
迷失自我
迷失自我 2021-02-19 03:24

I am developing an web application using Laravel 5 and AngularJS. I am using pure angularJS app for the client side and I am putting the client app files (views) in my pub

1条回答
  •  醉梦人生
    2021-02-19 04:04

    See line 16 of config/view.php (the "View Storage Paths" section)

    'paths' => [
        realpath(base_path('resources/views'))
    ],
    

    So you might change it to realpath(base_path('public/assets/views')) to be in your public path.


    Additional Examples

    'paths' => [
    
        // src/MyNamespace/resources
        realpath(base_path('src/MyNamespace/resources')),
    
        // app/resources
        realpath(app_path('resources'))
    
    ],
    
    • You can provide multiple search locations
    • You can use app_path(), base_path(), or neither.

    0 讨论(0)
提交回复
热议问题