Skip to content

Commit 4131404

Browse files
committed
Fixed migration file
1 parent 5952276 commit 4131404

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

readme.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff 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

2828
Migrate 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) {

src/Logger/Laravel/migrations/2016_03_01_000000_create_logs_table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)