Customizing the Laravel View Path

Customizing the Laravel View Path

Laravel version 5.6.*

config/views.php

Laravel provides an easy way to change view paths.

Open the config/views.php. The default value with Laravel as of version 5.6 are as follows:

'paths' => [
    resource_path('views'),
],

If you want your views in public/views. You can change the configuration value to the following:

'paths' => [
    public_path('views'),
],

That’s it.

Happy Coding 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *