简体   繁体   中英

Laravel change project root directory path

My client developed a laravel project on his Appserv localhost server. I want to work on the project on my localhost server but I use Xampp instead of Appserv. I copied the project folder to the htdocs but it gives me the following error when I run the script.

InvalidArgumentException in FileViewFinder.php line 137:
View [index] not found.
at FileViewFinder->findInPaths('index', array('C:\\AppServ\\www\\libraryapp\\project\\resources\\views')) in FileViewFinder.php line 79

How can I change the following path

'C:\\AppServ\\www\\libraryapp\\' to 'C:\\xampp\\htdocs\\libraryapp'

The path that Laravel uses to look for views is defined in config/views.php . If you can't find the path C:\\AppServ\\www\\libraryapp\\ there you can just add your own path C:\\xampp\\htdocs\\libraryapp in that file and this will make the project work if the views are the only problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM