I am currently going through the Laravel From Scratch series here on Laracasts, and in episode 6 (I believe??), it begins talking about using Eloquent. I followed the directions for changing database configuration to use sqlite, and I add the database.sqlite file to the database folder. This is all that is specified to do in the video. However, when I try the 'php artisan migrate' command, I get the following error:
[PDOException]
SQLSTATE[HY000] [2003] Can't connect to MySQL server on '127.0.0.1' (61)
Am I missing a step in the process? It seems it is still trying to connect to MySQL despite the changes I made to the database config file.
I've done that, and it allowed the migration to go through, and allowed me to insert and retrieve data using artisan tinker. However, when I went to retrieve data in the controller to display, I got this error:
PDOException in Connector.php line 55:
SQLSTATE[HY000] [2003] Can't connect to MySQL server on '127.0.0.1' (61)
Which is the same one I had before. I guess I am just confused as what the point of changing anything in the database config file if it doesn't change the .env file?