php - 函数 Illuminate\Support\Manager::createDriver() 的参数太少,通过了 0
问题描述
大家好...我是 php 的初学者 .... composer install 后我得到了那个错误
Symfony\Component\Debug\Exception\FatalThrowableError 类型错误:函数 Illuminate\Support\Manager::createDriver() 的参数太少,0 传入 C:\wamp\www\core\vendor\laravel\framework\src\Illuminate\ Support\Manager.php 位于第 88 行,预期为 1
protected function createDriver($driver)
{
// We'll check to see if a creator method exists for the given driver. If not we
// will check for a custom driver creator, which allows developers to create
// drivers using their own customized driver creator Closure to create it.
if (isset($this->customCreators[$driver])) {
return $this->callCustomCreator($driver);
} else {
$method = 'create'.Str::studly($driver).'Driver';
if (method_exists($this, $method)) {
return $this->$method();
}
}
throw new InvalidArgumentException("Driver [$driver] not supported.");
}
我该做什么?
解决方案
推荐阅读
- excel - 评估频率公式的中间步骤
- ruby-on-rails-4 - Rail 4:如何删除所有带有连接结果的查询
- javascript - 显示 DOM 对象内容
- vue.js - 在 Vue 父子之间传递事件
- html - 角弹性布局挑战
- odoo - 如何避免odoo 10 nvd3饼图中的文本重叠
- ios - 如何下载和安装 iXGuard for iOS 应用程序?
- python - 在使用 pytest 测试烧瓶应用程序中使用模拟服务器
- python - 使用 kubernetes 客户端 corev1api 运行 `connect_get_namespaced_pod_exec` 会产生错误的请求
- c - 用一个空格替换一个或多个空格的字符串的程序。不能使用任何库函数。这不是 EOF 版本