部署后,运行提示
Driver [File] not supported.
#0 [0]InvalidArgumentException in Manager.php line 103
Driver [File] not supported.
{
if ($this->namespace || false !== strpos($type, '\\')) {
$class = false !== strpos($type, '\\') ? $type : $this->namespace . Str::studly($type);
if (class_exists($class)) {
return $class;
}
}
throw new InvalidArgumentException("Driver [$type] not supported.");
}
/**
* 获取驱动参数
* @param $name
* @return array
*/
protected function resolveParams($name): array
{
Call Stack (折叠)
in Manager.php line 103
at Manager->resolveClass('File') in Manager.php line 136
at Manager->createDriver('file') in Manager.php line 65
at Manager->getDriver('file') in Manager.php line 55
at Manager->driver('file') in Cache.php line 90
at Cache->store(null) in Db.php line 38
at Db::__make(ob
at ReflectionMethod->invokeArgs(null, [ob
at Container->invokeClass('think\Db', []) in Container.php line 250
at Container->make('think\Db') in Container.php line 130
at Container->get('db') in Container.php line 507
at Container->__get('db') in ModelService.php line 25
at ModelService->boot()
at ReflectionMethod->invokeArgs(ob
at Container->invokeMethod('boot', [], false) in Container.php line 360
at Container->invoke([ob
at App->bootService(ob
at App->think\{closure}(ob
at array_walk([ob
at App->boot() in BootService.php line 24
at BootService->init(ob
at App->initialize() in Http.php line 178
at Http->initialize() in Http.php line 189
at Http->runWithRequest(ob
at Http->run() in index.php line 20
最佳答案
