File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed
src/Logger/Laravel/migrations Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -15,14 +15,14 @@ Open up `config/app.php` and find the `providers` key.
1515~~~
1616'providers' => array(
1717 // ...
18- ' Logger\Laravel\Provider\MonologMysqlHandlerServiceProvider'
18+ Logger\Laravel\Provider\MonologMysqlHandlerServiceProvider::class,
1919);
2020~~~
2121
22- Publish config using artisan CLI.
22+ Publish config using Laravel Artisan CLI.
2323
2424~~~
25- php artisan config :publish markhilton/monolog-mysql
25+ php artisan vendor :publish
2626~~~
2727
2828Migrate tables.
@@ -33,11 +33,7 @@ php artisan migrate
3333
3434## Usage
3535
36- ~~~ php
37- Log::getMonolog()->pushHandler(new Logger\Monolog\Handler\MysqlHandler());
38- ~~~
39-
40- Or in ` bootstrap/app.php ` :
36+ In your application ` bootstrap/app.php ` add:
4137
4238~~~ php
4339$app->configureMonologUsing(function($monolog) use($app) {
Original file line number Diff line number Diff line change @@ -22,10 +22,10 @@ public function up()
2222 $ table ->text ('message ' );
2323 $ table ->text ('context ' );
2424
25- $ table ->int ('remote_addr ' );
25+ $ table ->integer ('remote_addr ' );
2626 $ table ->string ('user_agent ' );
2727 $ table ->string ('session_id ' );
28- $ table ->int ('created_by ' )->index ();
28+ $ table ->integer ('created_by ' )->index ();
2929
3030 $ table ->dateTime ('created_at ' );
3131 });
You can’t perform that action at this time.
0 commit comments