Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/vendor
composer.lock
/.idea
/build
/build
.phpunit.result.cache
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand All @@ -35,7 +35,7 @@
},
"autoload-dev": {
"psr-4": {
"Rap2hpoutre\\LaravelLogViewer\\Test\\": "tests/"
"Rap2hpoutre\\LaravelLogViewer\\Tests\\": "tests/"
}
},
"extra": {
Expand Down
7 changes: 4 additions & 3 deletions tests/LaravelLogViewerTest.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<?php

namespace Rap2hpoutre\LaravelLogViewer;
namespace Rap2hpoutre\LaravelLogViewer\Tests;

use Illuminate\Support\Facades\File;
use Orchestra\Testbench\TestCase as OrchestraTestCase;
use File;
use Rap2hpoutre\LaravelLogViewer\LaravelLogViewer;

/**
* Class LaravelLogViewerTest
Expand Down Expand Up @@ -50,7 +51,7 @@ public function testSetFolderWithArrayStoragePath()

$laravel_log_viewer = new LaravelLogViewer();
$laravel_log_viewer->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());
Expand Down