My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more
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 :)