| Package Data | |
|---|---|
| Maintainer Username: | pedrofornaza |
| Maintainer Contact: | pedro.fornaza@gmail.com (Pedro Fornaza) |
| Package Create Date: | 2016-03-02 |
| Package Last Update: | 2016-03-02 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-22 15:05:07 |
| Package Statistics | |
|---|---|
| Total Downloads: | 2,069 |
| Monthly Downloads: | 2 |
| Daily Downloads: | 0 |
| Total Stars: | 2 |
| Total Watchers: | 1 |
| Total Forks: | 2 |
| Total Open Issues: | 0 |
MySQL driver for Laravel Monolog.
To get the lastest version of Theme simply require it in your composer.json file.
"pedrofornaza/monolog-mysql": "v0.1"
You'll then need to run composer install to download it and have the autoloader updated.
Open up config/app.php and find the providers key.
'providers' => array(
// ...
Fornaza\Laravel\Provider\MonologMysqlHandlerServiceProvider::class,
);
Publish config using artisan CLI.
php artisan vendor:publish
Migrate tables.
php artisan migrate
Log::getMonolog()->pushHandler(new Fornaza\Monolog\Handler\MysqlHandler());
Or in bootstrap/app.php:
$app->configureMonologUsing(function($monolog) use($app) {
$monolog->pushHandler(new Fornaza\Monolog\Handler\MysqlHandler());
});
Based on: