From 078b53a19d3f9321e95f1a5482478080937256ba Mon Sep 17 00:00:00 2001 From: ARCANEDEV Date: Sun, 17 Mar 2024 22:03:21 +0000 Subject: [PATCH 1/2] Adding Laravel v11 support --- .github/workflows/run-tests.yml | 2 +- composer.json | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 1bf5243b..07f6882e 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -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 }} diff --git a/composer.json b/composer.json index e734aea6..0c23d399 100644 --- a/composer.json +++ b/composer.json @@ -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": { @@ -43,7 +43,7 @@ }, "extra": { "branch-alias": { - "dev-develop": "10.x-dev" + "dev-develop": "11.x-dev" }, "laravel": { "providers": [ From 2d065b127e85137af4d2b4f609d2d8bbab232689 Mon Sep 17 00:00:00 2001 From: ARCANEDEV Date: Sun, 17 Mar 2024 22:26:54 +0000 Subject: [PATCH 2/2] Updating the docs --- README.md | 4 ++-- _docs/1.Installation-and-Setup.md | 38 ++++++++++++++++++------------- _docs/2.Configuration.md | 2 ++ config/log-viewer.php | 2 +- 4 files changed, 27 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 650245e3..59365f0d 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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 diff --git a/_docs/1.Installation-and-Setup.md b/_docs/1.Installation-and-Setup.md index 18f00212..08a61de0 100644 --- a/_docs/1.Installation-and-Setup.md +++ b/_docs/1.Installation-and-Setup.md @@ -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" @@ -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" diff --git a/_docs/2.Configuration.md b/_docs/2.Configuration.md index f72d296a..cc229c63 100644 --- a/_docs/2.Configuration.md +++ b/_docs/2.Configuration.md @@ -109,6 +109,8 @@ return [ 'middleware' => env('ARCANEDEV_LOGVIEWER_MIDDLEWARE') ? explode(',', env('ARCANEDEV_LOGVIEWER_MIDDLEWARE')) : null, ], + + 'show' => 'log-viewer::logs.show', ], // ... diff --git a/config/log-viewer.php b/config/log-viewer.php index b0816e22..18ced1d8 100644 --- a/config/log-viewer.php +++ b/config/log-viewer.php @@ -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', ], /* -----------------------------------------------------------------