Laravel News: Customizing the Laravel View Path
On the Laravel News site they've posted a quick tutorial showing you how to change the path to views in a Laravel-based application.
In response to our post yesterday about Laravel 5.7 Resources Directory Changes, a reader mentioned that they would prefer to have their application views outside of the resources folder.
I thought I’d write up how you can customize the view path; it’s effortless with Laravel!
The change is made in the
views.php configuration file, updating the value for the
paths setting. You can point it to a single location (like the application path or resource path) or you can set multiple to tell the framework to search for the view in either. The post ends with a mention one thing to keep in mind about generating views and their location (and moving them around).