Подсветка \ База данных \ QueryException плз, помогите мне - PullRequest
1 голос
/ 21 марта 2020

Осветить \ Database \ QueryException не удалось найти драйвер (SQL: вставить в регистрационные (fname, lname, email, пароль, _token) значения (rakesh,kumar,rakeshkumarsingh25may@gmail.com, fdzdv, 4ZCltubm0q3sfU6a9jiEzrp7FlW19aWTIVQc0Ii44) * 100 * 100 *) *

http://127.0.0.1: 8000 / магазин

 * @throws \Illuminate\Database\QueryException

 */

protected function runQueryCallback($query, $bindings, Closure $callback)

{

    // To execute the statement, we'll simply call the callback, which will actually

    // run the SQL against the PDO connection. Then we can calculate the time it

    // took to execute and log the query SQL, bindings and time in our memory.

    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) {

        throw new QueryException(

            $query, $this->prepareBindings($bindings), $e

        );

    }



    return $result;

}

1 Ответ

0 голосов
/ 23 марта 2020

PHP версия: PHP 7.3.12-1 (cli) (сборка: 28 ноября 2019 г., 07:34:08) (NTS) Авторское право (c) 1997-2018 * Zend Engine PHP Group v3.3.12, Авторское право (c), Zend Technologies, 1998-2018, Zend Technologies с Zend OPcache v7.3.12-1, Авторское право (c), 1999-2018, Zend Technologies

...