Skip to content

Commit ab85d5d

Browse files
authored
Laravel 12 (#309)
* bump dependencies * fix namespaces * add `.phpunit.result.cache` to `.gitignore` * remove php 8.2 / laravel 11 exclusion * add php 8.4 and laravel 12 to matrix * update laravel versions in readme
1 parent 49c52ae commit ab85d5d

File tree

5 files changed

+27
-13
lines changed

5 files changed

+27
-13
lines changed

.github/workflows/run-tests.yml

+16-4
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ jobs:
99
strategy:
1010
fail-fast: true
1111
matrix:
12-
php: ["7.2", "7.4", "8.0", "8.1", "8.2", "8.3"]
13-
laravel: ["^6.0", "^7.0", "^8.0", "^9.0", "^10.0", "^11.0"]
12+
php: ["7.2", "7.4", "8.0", "8.1", "8.2", "8.3", "8.4"]
13+
laravel: ["^6.0", "^7.0", "^8.0", "^9.0", "^10.0", "^11.0", "^12.0"]
1414
exclude:
1515
- php: "8.0"
1616
laravel: "^10.0"
@@ -22,18 +22,24 @@ jobs:
2222
laravel: "^9.0"
2323
- php: "7.2"
2424
laravel: "^9.0"
25+
- php: "8.4"
26+
laravel: "^8.0"
2527
- php: "8.3"
2628
laravel: "^8.0"
2729
- php: "8.2"
2830
laravel: "^8.0"
2931
- php: "7.2"
3032
laravel: "^8.0"
33+
- php: "8.4"
34+
laravel: "^7.0"
3135
- php: "8.3"
3236
laravel: "^7.0"
3337
- php: "8.2"
3438
laravel: "^7.0"
3539
- php: "8.1"
3640
laravel: "^7.0"
41+
- php: "8.4"
42+
laravel: "^6.0"
3743
- php: "8.3"
3844
laravel: "^6.0"
3945
- php: "8.2"
@@ -48,8 +54,14 @@ jobs:
4854
laravel: "^11.0"
4955
- php: "8.1"
5056
laravel: "^11.0"
51-
- php: "8.2"
52-
laravel: "^11.0"
57+
- php: "7.2"
58+
laravel: "^12.0"
59+
- php: "7.4"
60+
laravel: "^12.0"
61+
- php: "8.0"
62+
laravel: "^12.0"
63+
- php: "8.1"
64+
laravel: "^12.0"
5365
name: "PHP${{ matrix.php }} - Laravel${{ matrix.laravel }}"
5466

5567
runs-on: "ubuntu-latest"

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/vendor
22
composer.lock
33
/.idea
4-
/build
4+
/build
5+
.phpunit.result.cache

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Laravel log viewer
99

1010

1111
## TL;DR
12-
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)
12+
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)
1313

1414
## What ?
1515
Small log viewer for laravel. Looks like this:

composer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
],
2020
"require": {
2121
"php": "^7.2|^8.0",
22-
"illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0"
22+
"illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0"
2323
},
2424
"require-dev": {
25-
"phpunit/phpunit": "^7||^8.4|^9.3.3|^10.1",
26-
"orchestra/testbench": "^4.0|^5.0|^6.0|^7.0|^8.0|^9.0"
25+
"phpunit/phpunit": "^7||^8.4|^9.3.3|^10.1|^11.0",
26+
"orchestra/testbench": "^4.0|^5.0|^6.0|^7.0|^8.0|^9.0|^10.0"
2727
},
2828
"autoload": {
2929
"classmap": [
@@ -35,7 +35,7 @@
3535
},
3636
"autoload-dev": {
3737
"psr-4": {
38-
"Rap2hpoutre\\LaravelLogViewer\\Test\\": "tests/"
38+
"Rap2hpoutre\\LaravelLogViewer\\Tests\\": "tests/"
3939
}
4040
},
4141
"extra": {

tests/LaravelLogViewerTest.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<?php
22

3-
namespace Rap2hpoutre\LaravelLogViewer;
3+
namespace Rap2hpoutre\LaravelLogViewer\Tests;
44

5+
use Illuminate\Support\Facades\File;
56
use Orchestra\Testbench\TestCase as OrchestraTestCase;
6-
use File;
7+
use Rap2hpoutre\LaravelLogViewer\LaravelLogViewer;
78

89
/**
910
* Class LaravelLogViewerTest
@@ -50,7 +51,7 @@ public function testSetFolderWithArrayStoragePath()
5051

5152
$laravel_log_viewer = new LaravelLogViewer();
5253
$laravel_log_viewer->setStoragePath([$path]);
53-
if(!\File::exists("$path/samuel")) \File::makeDirectory("$path/samuel");
54+
if(!File::exists("$path/samuel")) File::makeDirectory("$path/samuel");
5455
$laravel_log_viewer->setFolder('samuel');
5556

5657
$this->assertEquals("samuel", $laravel_log_viewer->getFolderName());

0 commit comments

Comments
 (0)