Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aline-matos opened this issue Aug 16, 2019 · 0 comments
Open

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

aline-matos opened this issue Aug 16, 2019 · 0 comments

Comments

@aline-matos
Copy link

aline-matos commented Aug 16, 2019

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant