2

I am getting the following error after running the backpack devtools install.

php artisan backpack:devtools:install

I'm unsure about the warning above. My env is set to local. Now the DevTools menu item appears and when I click it I get the following exception:

Illuminate\Database\QueryException
could not find driver (SQL: create table "models" ("file" varchar, "id" integer not null primary key autoincrement, "file_type" varchar, "file_extension" varchar, "file_path" varchar, "file_path_absolute" varchar, "file_path_relative" varchar, "file_path_from_base" varchar, "file_name" varchar, "file_name_without_extension" varchar, "file_name_with_extension" varchar, "file_last_accessed_at" datetime, "file_last_changed_at" datetime, "file_last_modified_at" datetime, "file_created_at" datetime, "file_directory" varchar, "file_contents" varchar, "class_name" varchar, "class_namespace" varchar, "class_path" varchar, "class_path_with_extension" varchar, "created_at" datetime, "updated_at" datetime))
lkatiforis
  • 5,703
  • 2
  • 16
  • 35
Web PBL
  • 23
  • 2

1 Answers1

1

Most likely you do not have SQLite installed - or the sqlite extension is not enabled in your php.ini

Backpack uses Laravel Sushi, which itself uses SQLite to store all the information about Models etc.

tabacitu
  • 6,047
  • 1
  • 23
  • 37
  • 2
    Thanks, lead me back to the site where i read the troubleshooting guide again and low and behold :D https://backpackforlaravel.com/products/devtools/readme.md – Web PBL Nov 11 '21 at 05:13
  • 2
    Specifically devtools requires sqlite from i could tell – Web PBL Nov 11 '21 at 05:14