dcblogdev / laravel-microsoft-graph

Laravel package for Microsoft Graph API (Microsoft365)
https://dcblog.dev/docs/laravel-microsoft-graph
Other
120 stars 51 forks source link

Database connection [default] not configured. #35

Closed angelothegreat13 closed 1 year ago

angelothegreat13 commented 1 year ago

Database connection errors keep popping up even though I already configured my database correctly, by the way, this error only appears in live site

image

dcblogdev commented 1 year ago

I've been thinking about changing the default option from default to mysql.

in your .env file add

MSGRAPH_DB_CONNECTION=mysql

to set the connection to use a connection called mysql.

angelothegreat13 commented 1 year ago

I've been thinking about changing the default option from default to mysql.

in your .env file add

MSGRAPH_DB_CONNECTION=mysql

to set the connection to use a connection called mysql.

It works, Thanks :-)