Package Data | |
---|---|
Maintainer Username: | lichv |
Maintainer Contact: | lichv@gmail.com (lichv lee) |
Package Create Date: | 2017-03-28 |
Package Last Update: | 2017-04-02 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-15 15:26:09 |
Package Statistics | |
---|---|
Total Downloads: | 59 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
MySQL driver for Laravel Monolog.
To get the lastest version of Theme simply require it in your composer.json
file.
"lichv/monolog-mysql": "dev-master"
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(
// ...
'Logger\Laravel\Provider\MonologMysqlHandlerServiceProvider'
);
Publish config using artisan CLI.
php artisan config:publish lichv/monolog-mysql
Migrate tables.
php artisan migrate
Log::getMonolog()->pushHandler(new Logger\Monolog\Handler\MysqlHandler());
Or in bootstrap/app.php
:
$app->configureMonologUsing(function($monolog) use($app) {
$monolog->pushHandler(new Logger\Monolog\Handler\MysqlHandler());
});
Based on: