zefy / laravel-sso

MIT License
100 stars 74 forks source link

Call to a member function prepare() on null #21

Open aline-matos opened 5 years ago

aline-matos commented 5 years ago

Laravel 5.8 Mongo v3.6.3 PHP 7.2.21

It happens when I run:

$ php artisan sso:broker:create {name}


  at /vendor/laravel/framework/src/Illuminate/Database/Connection.php:452
    448|             if ($this->pretending()) {
    449|                 return true;
    450|             }
    451| 
  > 452|             $statement = $this->getPdo()->prepare($query);
    453| 
    454|             $this->bindValues($statement, $this->prepareBindings($bindings));
    455| 
    456|             $this->recordsHaveBeenModified();

  Exception trace:

  1   Illuminate\Database\Connection::Illuminate\Database\{closure}("insert into "brokers" ("name", "secret", "updated_at", "created_at") values (?, ?, ?, ?)")
      /vendor/laravel/framework/src/Illuminate/Database/Connection.php:657

  2   Illuminate\Database\Connection::runQueryCallback("insert into "brokers" ("name", "secret", "updated_at", "created_at") values (?, ?, ?, ?)", Object(Closure))
      /vendor/laravel/framework/src/Illuminate/Database/Connection.php:624