tomatophp / filament-artisan

Simple but yet powerful library for running some artisan commands. this packages is a fork of artisan-gui with some custom for filament UI
https://tomatophp.com/en/open-source/filament-artisan
MIT License
20 stars 3 forks source link

"could not find driver" after plugin activation #11

Open catative opened 3 days ago

catative commented 3 days ago

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 }

linear[bot] commented 3 days ago

TOT-134 "could not find driver" after plugin activation

catative commented 3 days ago

But laravel migrations work perfectly

catative commented 3 days ago

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