Laravel PHP工匠,容器问题

时间:2019-03-03 21:53:22

标签: php laravel laravel-5 laravel-5.4

我正在尝试将laravel与我的数据库连接,问题是php artisan找不到类Cash.store。

你好

  

在Container.php第730行中:   类cache.store不存在

由于Google,我尝试更改container.php和cache.php,但没有任何变化。

我的container.php

   namespace Illuminate\Container;
use Closure;
use ArrayAccess;
use LogicException;
use ReflectionClass;use ReflectionParameter;
use Illuminate\Support\Facades\Cache;
use Illuminate\Contracts\Container\BindingResolutionException;
use Illuminate\Contracts\Container\Container as ContainerContract;

还有我的cache.php

use Illuminate\Support\Str;

感谢您抽出宝贵的时间:) 附言:我不能将Hello用作第一个单词。

1 个答案:

答案 0 :(得分:0)

我的理解是,您尝试将缓存保存在db中,如果您都做对了,请尝试使用干净缓存,如果这样做不利于在每个步骤上尝试通过dd()来获取错误。