database

Monitor database connections and alert when they are below a threshold.

php artisan php artisan db:monitor

Syntax

Syntax
php artisan db:monitor [--min=threshold]

Explanation

Checks database connections and reports when available connections fall below the threshold. Useful for scheduling to proactively detect connection pool exhaustion.

Example

Example
php artisan db:monitor --min=5

Explanation

Checks database connections and reports when available connections fall below the threshold. Useful for scheduling to proactively detect connection pool exhaustion.