diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index fa243f2..d3628b3 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -9,8 +9,8 @@ jobs: strategy: fail-fast: true matrix: - php: ["7.2", "7.4", "8.0", "8.1", "8.2", "8.3"] - laravel: ["^6.0", "^7.0", "^8.0", "^9.0", "^10.0", "^11.0"] + php: ["7.2", "7.4", "8.0", "8.1", "8.2", "8.3", "8.4"] + laravel: ["^6.0", "^7.0", "^8.0", "^9.0", "^10.0", "^11.0", "^12.0"] exclude: - php: "8.0" laravel: "^10.0" @@ -22,18 +22,24 @@ jobs: laravel: "^9.0" - php: "7.2" laravel: "^9.0" + - php: "8.4" + laravel: "^8.0" - php: "8.3" laravel: "^8.0" - php: "8.2" laravel: "^8.0" - php: "7.2" laravel: "^8.0" + - php: "8.4" + laravel: "^7.0" - php: "8.3" laravel: "^7.0" - php: "8.2" laravel: "^7.0" - php: "8.1" laravel: "^7.0" + - php: "8.4" + laravel: "^6.0" - php: "8.3" laravel: "^6.0" - php: "8.2" @@ -48,8 +54,14 @@ jobs: laravel: "^11.0" - php: "8.1" laravel: "^11.0" - - php: "8.2" - laravel: "^11.0" + - php: "7.2" + laravel: "^12.0" + - php: "7.4" + laravel: "^12.0" + - php: "8.0" + laravel: "^12.0" + - php: "8.1" + laravel: "^12.0" name: "PHP${{ matrix.php }} - Laravel${{ matrix.laravel }}" runs-on: "ubuntu-latest" diff --git a/.gitignore b/.gitignore index 8c551bf..2af0cee 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /vendor composer.lock /.idea -/build \ No newline at end of file +/build +.phpunit.result.cache diff --git a/README.md b/README.md index 35ca815..63ccbb2 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Laravel log viewer ## TL;DR -Log Viewer for Laravel 5, 6, 7, 8, 9 & 10 (still compatible with 4.2 too) and Lumen. **Install with composer, create a route to `LogViewerController`**. No public assets, no vendor routes, works with and/or without log rotate. Inspired by Micheal Mand's [Laravel 4 log viewer](https://github.com/mikemand/logviewer) (works only with laravel 4.1) +Log Viewer for Laravel 6, 7, 8, 9, 10, 11 & 12 and Lumen. **Install with composer, create a route to `LogViewerController`**. No public assets, no vendor routes, works with and/or without log rotate. Inspired by Micheal Mand's [Laravel 4 log viewer](https://github.com/mikemand/logviewer) (works only with laravel 4.1) ## What ? Small log viewer for laravel. Looks like this: diff --git a/composer.json b/composer.json index 2dc5f97..c2a90f0 100644 --- a/composer.json +++ b/composer.json @@ -19,11 +19,11 @@ ], "require": { "php": "^7.2|^8.0", - "illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0" + "illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0" }, "require-dev": { - "phpunit/phpunit": "^7||^8.4|^9.3.3|^10.1", - "orchestra/testbench": "^4.0|^5.0|^6.0|^7.0|^8.0|^9.0" + "phpunit/phpunit": "^7||^8.4|^9.3.3|^10.1|^11.0", + "orchestra/testbench": "^4.0|^5.0|^6.0|^7.0|^8.0|^9.0|^10.0" }, "autoload": { "classmap": [ @@ -35,7 +35,7 @@ }, "autoload-dev": { "psr-4": { - "Rap2hpoutre\\LaravelLogViewer\\Test\\": "tests/" + "Rap2hpoutre\\LaravelLogViewer\\Tests\\": "tests/" } }, "extra": { diff --git a/tests/LaravelLogViewerTest.php b/tests/LaravelLogViewerTest.php index 9c195c2..3de7b4a 100644 --- a/tests/LaravelLogViewerTest.php +++ b/tests/LaravelLogViewerTest.php @@ -1,9 +1,10 @@ setStoragePath([$path]); - if(!\File::exists("$path/samuel")) \File::makeDirectory("$path/samuel"); + if(!File::exists("$path/samuel")) File::makeDirectory("$path/samuel"); $laravel_log_viewer->setFolder('samuel'); $this->assertEquals("samuel", $laravel_log_viewer->getFolderName());