Answer the question
In order to leave comments, you need to log in
How to change folder with view not through config file?
Tell me how to change the folder with views on Laravel without touching the configuration file itself?
I tried these two options, but the views are still taken from the folder that is specified in the config file.config(["view.paths"=>$newPaths]);
app()->bind('view.finder', function ($app) {
// $newPaths = .... ;
return new \Illuminate\View\FileViewFinder($app['files'], $newPaths);
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question