master

laravel/framework

Last updated at: 29/12/2023 09:22

MySqlDriver.php

TLDR

This file contains the MySqlDriver class, which extends the AbstractMySQLDriver class. It also uses the ConnectsToDatabase trait. The class implements a single method getName() which returns the name of the driver.

Classes

MySqlDriver

The MySqlDriver class extends the AbstractMySQLDriver class from the Doctrine DBAL package. It also uses the ConnectsToDatabase trait. The class implements a single method, getName(), which returns the name of the driver.

<?php

namespace Illuminate\Database\PDO;

use Doctrine\DBAL\Driver\AbstractMySQLDriver;
use Illuminate\Database\PDO\Concerns\ConnectsToDatabase;

class MySqlDriver extends AbstractMySQLDriver
{
    use ConnectsToDatabase;

    /**
     * {@inheritdoc}
     */
    public function getName()
    {
        return 'pdo_mysql';
    }
}