gpt4 book ai didi

laravel-5 - 未捕获的 InvalidArgumentException : Please provide a valid cache path

转载 作者:行者123 更新时间:2023-12-05 09:14:05 25 4
gpt4 key购买 nike

我从 bitbucket 得到了一个 laravel 项目,其中缺少一些文件夹,例如 vendor 和 storage 文件夹,但是在我完成 composer update 之后,我发现 vendor 文件夹已被下载和其他有用的依赖项,但 storage 文件夹仍然是空的当我运行这个项目时,我得到了这个错误

C:\xampp\htdocs\laravel\genesis>php artisan serve
Laravel development server started: <http://127.0.0.1:8000>
[Tue Mar 5 17:10:44 2019] PHP Fatal error: Uncaught InvalidArgumentException: Please provide a valid cache path. in C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\View\Compilers\Compiler.php:36
Stack trace:
#0 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\View\ViewServiceProvider.php(141): Illuminate\View\Compilers\Compiler->__construct(Object(Illuminate\Filesystem\Filesystem), false)
#1 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\Container\Container.php(776): Illuminate\View\ViewServiceProvider->Illuminate\View\{closure}(Object(Illuminate\Foundation\Application), Array)
#2 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\Container\Container.php(658): Illuminate\Container\Container->build(Object(Closure))
#3 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\Container\Container.php(609): Illuminate\Container\Container->resolve('blade.compiler', Array)
#4 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\Found in C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\View\Compilers\Compiler.php on line 36
[Tue Mar 5 17:10:45 2019] PHP Fatal error: Uncaught InvalidArgumentException: Please provide a valid cache path. in C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\View\Compilers\Compiler.php:36
Stack trace:
#0 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\View\ViewServiceProvider.php(141): Illuminate\View\Compilers\Compiler->__construct(Object(Illuminate\Filesystem\Filesystem), false)
#1 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\Container\Container.php(776): Illuminate\View\ViewServiceProvider->Illuminate\View\{closure}(Object(Illuminate\Foundation\Application), Array)
#2 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\Container\Container.php(658): Illuminate\Container\Container->build(Object(Closure))
#3 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\Container\Container.php(609): Illuminate\Container\Container->resolve('blade.compiler', Array)
#4 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\Found in C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\View\Compilers\Compiler.php on line 36
[Tue Mar 5 17:11:08 2019] PHP Fatal error: Uncaught InvalidArgumentException: Please provide a valid cache path. in C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\View\Compilers\Compiler.php:36
Stack trace:
#0 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\View\ViewServiceProvider.php(141): Illuminate\View\Compilers\Compiler->__construct(Object(Illuminate\Filesystem\Filesystem), false)
#1 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\Container\Container.php(776): Illuminate\View\ViewServiceProvider->Illuminate\View\{closure}(Object(Illuminate\Foundation\Application), Array)
#2 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\Container\Container.php(658): Illuminate\Container\Container->build(Object(Closure))
#3 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\Container\Container.php(609): Illuminate\Container\Container->resolve('blade.compiler', Array)
#4 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\Found in C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\View\Compilers\Compiler.php on line 36
[Tue Mar 5 17:11:08 2019] PHP Fatal error: Uncaught InvalidArgumentException: Please provide a valid cache path. in C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\View\Compilers\Compiler.php:36
Stack trace:
#0 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\View\ViewServiceProvider.php(141): Illuminate\View\Compilers\Compiler->__construct(Object(Illuminate\Filesystem\Filesystem), false)
#1 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\Container\Container.php(776): Illuminate\View\ViewServiceProvider->Illuminate\View\{closure}(Object(Illuminate\Foundation\Application), Array)
#2 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\Container\Container.php(658): Illuminate\Container\Container->build(Object(Closure))
#3 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\Container\Container.php(609): Illuminate\Container\Container->resolve('blade.compiler', Array)
#4 C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\Found in C:\xampp\htdocs\laravel\genesis\vendor\laravel\framework\src\Illuminate\View\Compilers\Compiler.php on line 36

所以我想知道如何从官方 laravel 项目下载所有丢失的文件

最佳答案

您需要在存储文件夹中创建以下文件夹:-

app

framework
----> cache
----> sessions
----> views

logs

关注此威胁 Please provide a valid cache path深入了解它。

我希望这将解决请提供有效的缓存路径。问题

关于laravel-5 - 未捕获的 InvalidArgumentException : Please provide a valid cache path,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55006492/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com