filamentphp / demo

Source code for the demo.filamentphp.com website.
https://demo.filamentphp.com
MIT License
858 stars 419 forks source link

error: could not find driver #110

Open fazliddin opened 1 month ago

fazliddin commented 1 month ago

image

pxlrbt commented 1 month ago

Sounds like an issue with your local setup and that you don't have a DB driver for your selected database.

fazliddin commented 4 weeks ago
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=oqila_cms
DB_USERNAME=root
DB_PASSWORD=123456

migration and seed was successful

pxlrbt commented 4 weeks ago

Sounds like you don't have sqlite driver. Because the Currency model uses sqlite behind the scenes.

fazliddin commented 3 weeks ago

Yes, I installed sqlite, but could not figured out how to configure two databases

pxlrbt commented 3 weeks ago

There is no need to configure two databases?

If you run php -m does it contain sqlite?

fazliddin commented 3 weeks ago

Yes it contains sqlite3. But scenario was:

  1. I cloned repo
  2. Configured .env file for mysql (by that time sqlite was not installed)
  3. I migrated
  4. Installed sqlite

Currently error still appears. It is my env file:

APP_NAME="Filament Demo"
APP_ENV=local
APP_KEY=base64:a4HXd4Ueo2jziF9rFcUvkDtKme2ibEVW1jLLWBsb/B4=
APP_DEBUG=true
APP_URL=http://filament-demo.loc

LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=filament_demo
DB_USERNAME=root
DB_PASSWORD=123456

BROADCAST_DRIVER=log
CACHE_DRIVER=file
FILESYSTEM_DRIVER=local
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120

MEMCACHED_HOST=127.0.0.1

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_MAILER=smtp
MAIL_HOST=mailhog
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=null
MAIL_FROM_NAME="${APP_NAME}"

AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false

FLARE_KEY=

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1

VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

It contains nothing about sqlite.