What should I do?
PHP8.2.13(cli)
Windows(WSL) Ubuntu20.04
Composer version 2.2.0
$ php artisan cache:clear
PDOException
could not find driver
at vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70
66▕ if (class_exists(PDOConnection::class) && ! $this->isPersistentConnection($options)) {
67▕ return new PDOConnection($dsn, $username, $password, $options);
68▕ }
69▕
➜ 70▕ return new PDO($dsn, $username, $password, $options);
71▕ }
72▕
73▕ /**
74▕ * Determine if the connection is persistent.
+10 vendor frames
11 [internal]:0
KrloveEloquentModelGeneratorTypeRegistry::__construct()
+15 vendor frames
27 [internal]:0
IlluminateContainer
Container::IlluminateContainer{closure}()
2
Answers
I deleted scripts section in composer.json.
PHP cannot find the appropriate database driver to connect to your database.