Skip to content

Commit c8ac445

Browse files
committed
Change mongodb to suggested optional install in composer.
Change travis testing to php 7.3/7.4.
1 parent 83d36ac commit c8ac445

File tree

3 files changed

+18
-13
lines changed

3 files changed

+18
-13
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: php
22
php:
3-
- 7.2
43
- 7.3
4+
- 7.4
55
services:
66
- mysql
77
- mongodb
@@ -10,6 +10,7 @@ before_script:
1010
- mysql -e 'CREATE DATABASE testing;'
1111
- composer self-update
1212
- composer install --no-interaction
13+
- composer require jenssegers/mongodb
1314
script:
1415
- vendor/bin/phpunit --coverage-clover=coverage.xml
1516
after_success:

composer.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "danielme85/laravel-log-to-db",
3-
"description": "Custom Larvel 5.6+ Log channel handler that can store log events to SQL or MongoDB databases. Uses Laravel native logging functionality.",
3+
"description": "Custom Laravel Log channel handler that can store log events to SQL or MongoDB databases. Uses Laravel native logging functionality.",
44
"keywords": ["laravel", "logging", "log", "database", "db", "mysql", "sql", "mongodb"],
55
"type": "library",
66
"license": "MIT",
@@ -16,9 +16,11 @@
1616
},
1717
"require-dev": {
1818
"orchestra/testbench": ">=5.0",
19-
"jenssegers/mongodb": ">=4.0",
2019
"mockery/mockery": "^1.0"
2120
},
21+
"suggest": {
22+
"jenssegers/mongodb": "Adds support for MongoDB in Laravel/Eloquent"
23+
},
2224
"autoload": {
2325
"psr-4": {
2426
"danielme85\\LaravelLogToDB\\": "src"
@@ -34,5 +36,5 @@
3436
}
3537
}
3638
},
37-
"minimum-stability": "alpha"
39+
"minimum-stability": "stable"
3840
}

readme.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,8 @@ Uses Laravel native logging functionality.
2121
* [Lumen Installation](#lumen-installation)
2222

2323

24-
> :warning: this add-on is developed to be backwards compatible down to Laravel 5.6+
25-
> testing of new releases is only performed on the following major Laravel versions.
26-
27-
| Version | Laravel | PHP |
28-
| :---: | :---: | :---: |
29-
| v1.x | 5.6+ | 7.1,7.2 |
30-
| v2.x | 6.x | 7.2,7.3 |
31-
| v2.4 | 7.x | 7.2,7.3 |
24+
> :warning: This project should be backwards compatible down to and including Laravel 5.6 and PHP 7.1.
25+
> <br>However testing of current version and master branch is only with PHP 7.3/7.4 and Laravel 8.
3226
3327
## Installation
3428
Use the composer require or add to composer.json.
@@ -41,8 +35,16 @@ If you are using SQL database server to store log events you would need to run t
4135
php artisan migrate
4236
```
4337

38+
39+
<i>For optional MongoDB support you need to install jenseegers/mongodb addon to Laravel</i>
40+
```
41+
#Optional mongodb support, not required!
42+
43+
composer require jenssegers/mongodb
44+
```
45+
4446
## Configuration
45-
Starting with Laravel 5.6 you will have a new settings file: "config/logging.php".
47+
Starting with Laravel 5.6 you will have a new config file: "config/logging.php".
4648
You will need to add an array under 'channels' for Log-to-DB here like so:
4749
```php
4850
'channels' => [

0 commit comments

Comments
 (0)