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

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct