class ApplicationInfoProvider
Methods
No description
Detect when the configured database driver does not match the server actually being used.
Reports on the session driver in use based on three scenarios: 1. If the configured session driver is valid and in use, it will be returned.
Details
at
line 26
__construct(Repository $cache, Translator $translator, Schedule $schedule, ConnectionInterface $db, Config $config, SessionManager $session, SessionHandlerInterface $sessionHandler, Queue $queue)
at
line 38
bool
scheduledTasksRegistered()
at
line 43
string
getSchedulerStatus()
at
line 57
string
identifyQueueDriver()
at
line 71
string
identifyDatabaseVersion()
at
line 86
string
identifyDatabaseDriver()
at
line 110
string|null
identifyDatabaseDriverMismatch()
Detect when the configured database driver does not match the server actually being used.
The common case is configuring the 'mysql' driver while connecting to a MariaDB server (or vice versa). Because Illuminate uses a distinct connection class and query grammar per driver, this mismatch can cause subtle, hard-to-diagnose query bugs. Returns the driver that *should* be configured, or null when the configured driver matches the server (or detection does not apply, e.g. for pgsql/sqlite which cannot be confused for one another).
at
line 129
array
identifyDatabaseOptions()
at
line 149
string
identifySessionDriver(bool $forWeb = false)
Reports on the session driver in use based on three scenarios: 1. If the configured session driver is valid and in use, it will be returned.
2. If the configured session driver is invalid, fallback to the default one and mention it. 3. If the actual used driver (i.e `session.handler`) is different from the current one (configured or default), mention it.