I am following the official Laravel Bootcamp and it keeps throwing this error when trying to migrate the SQLite DB.
Illuminate\Database\QueryException
could not find driver (SQL: PRAGMA foreign_keys = ON;)
at vendor/laravel/framework/src/Illuminate/Database/Connection.php:760
756▕ // If an exception occurs when attempting to run a query, we'll format the error
757▕ // message to include the bindings with SQL, which will make this exception a
758▕ // lot more helpful to the developer instead of just the database's errors.
759▕ catch (Exception $e) {
➜ 760▕ throw new QueryException(
761▕ $query, $this->prepareBindings($bindings), $e
762▕ );
763▕ }
764▕ }
+41 vendor frames
42 artisan:37
Illuminate\Foundation\Console\Kernel::handle()
OS Manjaro Linux 5.15.78-1 . PHP version 8.1.12. php-sqlite version 8.1.12-2.
I tried to apply the fixes I found on StackOverflow and in the Laracast Forum, but nothing worked. Edit : Solved it by uncommenting ";extension=pdo_sqlite.so" like in my php.ini file.