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

"could not find driver" after plugin activation #11

Open
catative opened this issue Oct 23, 2024 · 3 comments
Open

"could not find driver" after plugin activation #11

catative opened this issue Oct 23, 2024 · 3 comments

Comments

@catative
Copy link

could not find driver
CREATE TABLE "commands" (
"id" integer PRIMARY key autoincrement NOT NULL,
"name" varchar,
"description" varchar,
"synopsis" varchar,
"arguments" text,
"options" text,
"error" varchar,
"group" varchar
)

image

My composer.json is:
{ "name": "laravel/laravel", "type": "project", "description": "The skeleton application for the Laravel framework.", "keywords": [ "laravel", "framework" ], "license": "MIT", "require": { "php": "^8.1", "althinect/filament-spatie-roles-permissions": "^2.2", "ashallendesign/laravel-exchange-rates": "^7.2", "codeat3/blade-google-material-design-icons": "^1.18", "coolsam/flatpickr": "3.0.1", "filament/filament": "^3.1", "filament/spatie-laravel-settings-plugin": "^3.2", "guzzlehttp/guzzle": "^7.2", "laravel/framework": "^10.10", "laravel/sanctum": "^3.3", "laravel/tinker": "^2.8", "maatwebsite/excel": "^3.1", "owenvoke/blade-fontawesome": "^2.5", "pxlrbt/filament-environment-indicator": "^2.0", "rawilk/filament-password-input": "^2.0", "saade/filament-laravel-log": "^3.0", "sentry/sentry-laravel": "^4.4", "spatie/laravel-data": "^4.8", "spatie/laravel-settings": "^3.3", "tomatophp/filament-artisan": "^1.1" }, "require-dev": { "barryvdh/laravel-debugbar": "^3.10", "fakerphp/faker": "^1.9.1", "laravel/pint": "^1.0", "laravel/sail": "^1.18", "mockery/mockery": "^1.4.4", "nunomaduro/collision": "^7.0", "phpunit/phpunit": "^10.1", "spatie/laravel-ignition": "^2.0" }, "autoload": { "psr-4": { "App\\": "app/", "Database\\Factories\\": "database/factories/", "Database\\Seeders\\": "database/seeders/" } }, "autoload-dev": { "psr-4": { "Tests\\": "tests/" } }, "scripts": { "post-autoload-dump": [ "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", "@php artisan package:discover --ansi", "@php artisan filament:upgrade" ], "post-update-cmd": [ "@php artisan vendor:publish --tag=laravel-assets --ansi --force" ], "post-root-package-install": [ "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" ], "post-create-project-cmd": [ "@php artisan key:generate --ansi" ] }, "extra": { "laravel": { "dont-discover": [] } }, "config": { "optimize-autoloader": true, "preferred-install": "dist", "sort-packages": true, "allow-plugins": { "pestphp/pest-plugin": true, "php-http/discovery": true } }, "minimum-stability": "stable", "prefer-stable": true }

Copy link

linear bot commented Oct 23, 2024

@catative
Copy link
Author

catative commented Oct 23, 2024

But laravel migrations work perfectly

@catative
Copy link
Author

I solved this problem by installing the SQLite php module, but this seems strange, since most users use either
MySQL or PostgreSQL

  1. In php.ini (for me in /etc/php/8.1/apache2/php.ini, you can find location via phpinfo(); in Loaded Configuration File section) uncomment:
    extension=pdo_sqlite

  2. Install sqlite3 and restart server (I use Ubuntu 22.04 and Apache):

sudo apt install php8.1-sqlite3
sudo service apache2 restart

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