You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When initializing database and calling setAsGlobal() we can get database functionality through static call. But, how to check if a default connection is set or database is good to receive query? Since doing a check on the result Capsule\Manager::connection() may cause fatal error, and we have no way to retrieve default global instance (singleton).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When initializing database and calling
setAsGlobal()
we can get database functionality through static call. But, how to check if a default connection is set or database is good to receive query? Since doing a check on the resultCapsule\Manager::connection()
may cause fatal error, and we have no way to retrieve default global instance (singleton).Beta Was this translation helpful? Give feedback.
All reactions