fisayoafolayan / laravel-multiple-auth

A simple implementation of multiple authentication in Laravel. To follow along, this application has been documented as an article on Pusher blog.
81 stars 60 forks source link

Database connection as shown in tutorial is possibly wrong #9

Open yeboahnanaosei opened 3 years ago

yeboahnanaosei commented 3 years ago

Hi, thanks for the tutorial on pusher. I realized that the section that talks about connecting an sqlite database is probably not complete.

To connect to an sqlite database you need to set two variables in the .env file. The tutorial however just showed one which is: DB_CONNECTION=/absolute/path/to/database.sqlite

However, you need to set these two: DB_CONNECTION=sqlite DB_DATABASE=/absolute/path/to/database.sqlite