I try to do php artisan migrate and the error is
In Connection.php line 664:
could not find driver (SQL: select * from information_schema.tables where t able_schema = stock_management and table_name = migrations)
In Connector.php line 67:
could not find driver
Connection.php line 664
try {
$result = $callback($query, $bindings);
}
// If an exception occurs when attempting to run a query, we'll format the error
// message to include the bindings with SQL, which will make this exception a
// lot more helpful to the developer instead of just the database's errors.
catch (Exception $e) {
-->line 664 throw new QueryException(
$query, $this->prepareBindings($bindings), $e
);
}
Connector.php line 67
protected function createPdoConnection($dsn, $username, $password, $options)
{
if (class_exists(PDOConnection::class) && ! $this->isPersistentConnection($options)) {
return new PDOConnection($dsn, $username, $password, $options);
}
--> line 67 return new PDO($dsn, $username, $password, $options);
}