Support the ongoing development of Laravel.io →
Database

Hi everyone,

I've been dabbling with Laravel and while so far so good,I am stuck with my database connection and php artisan migrate Per the documentation, I created the database by doing touch database/database.sqlite and made changes to ./project/config/database.php so that it reads: 'default' => env('DB_CONNECTION', 'sqlite'),

When I run php artisan migrate however I get following error:

  [Illuminate\Database\QueryException]
  could not find driver (SQL: select * from information_schema.tables where tabl
  e_schema = homestead and table_name = migrations)



  [PDOException]
  could not find driver

I wasn't able to find that much on this error, so I'm hoping someone here can point me in the right direction?

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.