Skip to content

Commit

Permalink
Merge pull request #453 from ARCANEDEV/develop
Browse files Browse the repository at this point in the history
Adding Laravel v11 support
  • Loading branch information
arcanedev-maroc authored Mar 17, 2024
2 parents 05ab2b8 + 2d065b1 commit 851674b
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [8.1, 8.2, 8.3]
php: [8.2, 8.3]
dependency-version: [prefer-lowest, prefer-stable]

name: PHP ${{ matrix.php }} - ${{ matrix.dependency-version }}
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Feel free to check out the [releases](https://github.com/ARCANEDEV/LogViewer/rel
## Features

- A great Log viewer API.
- Laravel `5.x` to `10.x` are supported.
- Laravel `5.x` to `11.x` are supported.
- Ready to use (Views, Routes, controllers … Out of the box) [Note: No need to publish assets]
- View, paginate, filter, download and delete logs.
- Load a custom logs storage path.
Expand Down Expand Up @@ -97,7 +97,7 @@ If you discover any security related issues, please email arcanedev.maroc@gmail.
![Logs list](https://raw.githubusercontent.com/ARCANEDEV/LogViewer/master/_screenshots/2-logs-list.jpg)
![Single log](https://raw.githubusercontent.com/ARCANEDEV/LogViewer/master/_screenshots/3-single-log.jpg)

[badge_laravel]: https://img.shields.io/badge/Laravel-5.x%20to%2010.x-orange.svg?style=flat-square
[badge_laravel]: https://img.shields.io/badge/Laravel-5.x%20to%2011.x-orange.svg?style=flat-square
[badge_license]: https://img.shields.io/packagist/l/arcanedev/log-viewer.svg?style=flat-square
[badge_build]: https://img.shields.io/github/workflow/status/ARCANEDEV/LogViewer/run-tests?style=flat-square
[badge_coverage]: https://img.shields.io/scrutinizer/coverage/g/ARCANEDEV/LogViewer.svg?style=flat-square
Expand Down
38 changes: 22 additions & 16 deletions _docs/1.Installation-and-Setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,26 @@ Laravel uses the [Monolog PHP logging library](https://github.com/Seldaek/monolo

## Version Compatibility

| Laravel | LogViewer |
|:-----------------------------|:--------------------------------------|
| ![Laravel v9.x][laravel_9_x] | ![LogViewer v9.x][log_viewer_9_x] |
| ![Laravel v8.x][laravel_8_x] | ![LogViewer v8.x][log_viewer_8_x] |
| ![Laravel v7.x][laravel_7_x] | ![LogViewer v7.x][log_viewer_7_x] |
| ![Laravel v6.x][laravel_6_x] | ![LogViewer v5.x][log_viewer_5_x] |
| ![Laravel v5.8][laravel_5_8] | ![LogViewer v4.7.x][log_viewer_4_7_x] |
| ![Laravel v5.7][laravel_5_7] | ![LogViewer v4.6.x][log_viewer_4_6_x] |
| ![Laravel v5.6][laravel_5_6] | ![LogViewer v4.5.x][log_viewer_4_5_x] |
| ![Laravel v5.5][laravel_5_5] | ![LogViewer v4.4.x][log_viewer_4_4_x] |
| ![Laravel v5.4][laravel_5_4] | ![LogViewer v4.3.x][log_viewer_4_3_x] |
| ![Laravel v5.3][laravel_5_3] | ![LogViewer v4.2.x][log_viewer_4_2_x] |
| ![Laravel v5.2][laravel_5_2] | ![LogViewer v4.2.x][log_viewer_4_2_x] |
| ![Laravel v5.1][laravel_5_1] | ![LogViewer v4.2.x][log_viewer_4_2_x] |
| ![Laravel v5.0][laravel_5_0] | ![LogViewer v4.2.x][log_viewer_4_2_x] |

| Laravel | LogViewer |
|:-------------------------------|:--------------------------------------|
| ![Laravel v11.x][laravel_11_x] | ![LogViewer v11.x][log_viewer_11_x] |
| ![Laravel v9.x][laravel_10_x] | ![LogViewer v10.x][log_viewer_10_x] |
| ![Laravel v9.x][laravel_9_x] | ![LogViewer v9.x][log_viewer_9_x] |
| ![Laravel v8.x][laravel_8_x] | ![LogViewer v8.x][log_viewer_8_x] |
| ![Laravel v7.x][laravel_7_x] | ![LogViewer v7.x][log_viewer_7_x] |
| ![Laravel v6.x][laravel_6_x] | ![LogViewer v5.x][log_viewer_5_x] |
| ![Laravel v5.8][laravel_5_8] | ![LogViewer v4.7.x][log_viewer_4_7_x] |
| ![Laravel v5.7][laravel_5_7] | ![LogViewer v4.6.x][log_viewer_4_6_x] |
| ![Laravel v5.6][laravel_5_6] | ![LogViewer v4.5.x][log_viewer_4_5_x] |
| ![Laravel v5.5][laravel_5_5] | ![LogViewer v4.4.x][log_viewer_4_4_x] |
| ![Laravel v5.4][laravel_5_4] | ![LogViewer v4.3.x][log_viewer_4_3_x] |
| ![Laravel v5.3][laravel_5_3] | ![LogViewer v4.2.x][log_viewer_4_2_x] |
| ![Laravel v5.2][laravel_5_2] | ![LogViewer v4.2.x][log_viewer_4_2_x] |
| ![Laravel v5.1][laravel_5_1] | ![LogViewer v4.2.x][log_viewer_4_2_x] |
| ![Laravel v5.0][laravel_5_0] | ![LogViewer v4.2.x][log_viewer_4_2_x] |

[laravel_9_x]: https://img.shields.io/badge/version-11.x-blue.svg?style=flat-square "Laravel v11.x"
[laravel_9_x]: https://img.shields.io/badge/version-10.x-blue.svg?style=flat-square "Laravel v10.x"
[laravel_9_x]: https://img.shields.io/badge/version-9.x-blue.svg?style=flat-square "Laravel v9.x"
[laravel_8_x]: https://img.shields.io/badge/version-8.x-blue.svg?style=flat-square "Laravel v8.x"
[laravel_7_x]: https://img.shields.io/badge/version-7.x-blue.svg?style=flat-square "Laravel v7.x"
Expand All @@ -50,6 +54,8 @@ Laravel uses the [Monolog PHP logging library](https://github.com/Seldaek/monolo
[laravel_5_1]: https://img.shields.io/badge/version-5.1-blue.svg?style=flat-square "Laravel v5.1"
[laravel_5_0]: https://img.shields.io/badge/version-5.0-blue.svg?style=flat-square "Laravel v5.0"

[log_viewer_9_x]: https://img.shields.io/badge/version-11.x-blue.svg?style=flat-square "LogViewer v11.x"
[log_viewer_9_x]: https://img.shields.io/badge/version-10.x-blue.svg?style=flat-square "LogViewer v10.x"
[log_viewer_9_x]: https://img.shields.io/badge/version-9.x-blue.svg?style=flat-square "LogViewer v9.x"
[log_viewer_8_x]: https://img.shields.io/badge/version-8.x-blue.svg?style=flat-square "LogViewer v8.x"
[log_viewer_7_x]: https://img.shields.io/badge/version-7.x-blue.svg?style=flat-square "LogViewer v7.x"
Expand Down
2 changes: 2 additions & 0 deletions _docs/2.Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ return [

'middleware' => env('ARCANEDEV_LOGVIEWER_MIDDLEWARE') ? explode(',', env('ARCANEDEV_LOGVIEWER_MIDDLEWARE')) : null,
],

'show' => 'log-viewer::logs.show',
],

// ...
Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@
"type": "library",
"license": "MIT",
"require": {
"php": "^8.1",
"php": "^8.2",
"ext-json": "*",
"arcanedev/support": "^10.0",
"arcanedev/support": "^11.0",
"psr/log": "^1.0|^2.0|^3.0"
},
"require-dev": {
"laravel/framework": "^10.0",
"mockery/mockery": "^1.5.1",
"orchestra/testbench-core": "^8.0",
"phpunit/phpunit": "^10.1"
"laravel/framework": "^11.0",
"mockery/mockery": "^1.6",
"orchestra/testbench-core": "^9.0",
"phpunit/phpunit": "^10.5"
},
"autoload": {
"psr-4": {
Expand All @@ -43,7 +43,7 @@
},
"extra": {
"branch-alias": {
"dev-develop": "10.x-dev"
"dev-develop": "11.x-dev"
},
"laravel": {
"providers": [
Expand Down
2 changes: 1 addition & 1 deletion config/log-viewer.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
'middleware' => env('ARCANEDEV_LOGVIEWER_MIDDLEWARE') ? explode(',', env('ARCANEDEV_LOGVIEWER_MIDDLEWARE')) : null,
],

'show' => 'log-viewer::logs.show'
'show' => 'log-viewer::logs.show',
],

/* -----------------------------------------------------------------
Expand Down

0 comments on commit 851674b

Please sign in to comment.