Skip to content

Commit

Permalink
fix: remove breaking change (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
rap2hpoutre authored Apr 23, 2020
1 parent 52c2a39 commit 337bb72
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ $app->register(\Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider::cl

Explicitly set the namespace in `app/Http/routes.php`:
```php
$router->group(['namespace' => '\Rap2hpoutre\Controllers'], function() use ($router) {
$router->group(['namespace' => '\Rap2hpoutre\LaravelLogViewer'], function() use ($router) {
$router->get('logs', 'LogViewerController@index');
});
```
Expand Down
9 changes: 0 additions & 9 deletions src/controllers/BaseController.php

This file was deleted.

9 changes: 7 additions & 2 deletions src/controllers/LogViewerController.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
<?php

namespace Rap2hpoutre\Controllers;
namespace Rap2hpoutre\LaravelLogViewer;

use Illuminate\Support\Facades\Crypt;
use Rap2hpoutre\LaravelLogViewer\LaravelLogViewer;

if (class_exists("\\Illuminate\\Routing\\Controller")) {
class BaseController extends \Illuminate\Routing\Controller {}
} elseif (class_exists("Laravel\\Lumen\\Routing\\Controller")) {
class BaseController extends \Laravel\Lumen\Routing\Controller {}
}

/**
* Class LogViewerController
Expand Down

0 comments on commit 337bb72

Please sign in to comment.