Sign in
Log inSign up
Customizing the Laravel View Path (Laravel version 5.6.*  )

Customizing the Laravel View Path (Laravel version 5.6.* )

Nishit Maheta's photo
Nishit Maheta
·Aug 31, 2018

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 :)