A support package that extends Illuminate Database package with pre/post connection events.
This package is a downstream copy of laravel-db-events by Patrick Carlo-Hickman forked for direct maintenance and forward support for Laravel 7 and later.
This library provides:
Events
DatabaseConnecting
: fired before connecting to the databaseDatabaseConnected
: fired after connecting to the database
Exceptions
ConnectingException
: thrown if the database connection is cancelled duringDatabaseConnecting
See USAGE for additional information and examples.
Add the private repository to the repositories
block of your Laravel project's composer.json file:
{
"repositories": [{
"name": "mcdev/illuminate-connection-events",
"type": "vcs",
"url": "https://github.com/MC-RhettW/illuminate-connection-events.git"
}]
}
Then add the package to the require-dev
block:
{
"require": {
"mcdev/illuminate-connection-events": ">=1.0.1"
}
}
Please see SECURITY for important security support information.
The MIT License (MIT). Please see License File for more information.