moshemo's avatar

SQLite On Windows/Homestead

I have installed laravel using homestead. So far, everything has worked fine until I've come to the point where I've tried to use sqlite. In particular, I am working on this lesson and get the following error message when I run php artisan migrate:

  [PDOException]
  could not find driver

...iles (x86)\Cmder/vendor/clink-completions/npm_prompt.lua:11: attempt to concatenate local 'package) nil valuC:\Users\moshe\Code\Laravel {git}{hg}

However, if I run homestead ssh and then sqlite3, I see that I have sqlite installed:

SQLite version 3.8.2 2013-12-06 14:53:30
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite>

But in the tutorial, Jeffrey did NOT go into homestead ssh (as far as I can tell). So I am wondering what I have to do to get access to sqlite without entering into ssh.

I should note that I am working on a Windows 10 machine.

Thanks.

0 likes
5 replies
tomopongrac's avatar

This is because your machine probably doesn't have installed PDO drive for php.

i would run everything from vm because the point of using vm is that you dont have configure these things by yourself on host machine.

1 like
moshemo's avatar

I'm not sure what you mean by running from vm.

If I do homestead ssh, then I do not have access to php artisan:

vagrant@homestead:~/Code$ php artisan migrate
Could not open input file: artisan

I do, however, have access to php artisan from the install of Laravel I did via homestead which is located at C:\Users\moshe\Code\LaravelFromScratch

But then I have the driver issue I mentioned above.

samo's avatar

cd in into the LaravelFromScratch dir on your homestead and youll have access to the artisan command

1 like
tomopongrac's avatar

You cannot use php artisn if you are not inside a laravel folder.

That is why it says saying 'Could not open input file - artisan'

1 like

Please or to participate in this conversation.