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

Laravel 11 - SQLite Support #274

Open
andreinocenti opened this issue Mar 21, 2024 · 3 comments
Open

Laravel 11 - SQLite Support #274

andreinocenti opened this issue Mar 21, 2024 · 3 comments

Comments

@andreinocenti
Copy link

Hello,

Creating models on a fresh Laravel 11 using code:model and using a SQLite database returns the following error:

php artisan code:models --table=cities 
   BadMethodCallException 

  Method Illuminate\Database\SQLiteConnection::getDoctrineConnection does not exist.

  at vendor/laravel/framework/src/Illuminate/Macroable/Traits/Macroable.php:112
    108▕      */
    109public function __call($method, $parameters)
    110▕     {
    111if (! static::hasMacro($method)) {
  ➜ 112throw new BadMethodCallException(sprintf(
    113'Method %s::%s does not exist.', static::class, $method
    114▕             ));
    115▕         }
    116▕ 

  i   Bad Method Call: Did you mean Illuminate\Database\SQLiteConnection::selectFromWriteConnection() ? 

      +20 vendor frames 

  21  artisan:13
      Illuminate\Foundation\Application::handleCommand()
@aniketan
Copy link

facing the same issue sqlite

@Antonio-pf
Copy link

this is happening the same with postgres

@meliani
Copy link

meliani commented Apr 18, 2024

Laravel 11 droped dbal so you need to make some changes in shemas() function, take a look at this thread : #273

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

4 participants