Permalink
Browse files

Add laravel log viewer

  • Loading branch information...
REBELinBLUE committed Jul 14, 2017
1 parent 57aacb7 commit 3c9c41f5ec5737bf4648c6bfa6a0d65c99ae96ba
Showing with 73 additions and 7 deletions.
  1. +2 −6 app/Providers/RouteServiceProvider.php
  2. +1 −0 composer.json
  3. +55 −1 composer.lock
  4. +1 −0 config/app.php
  5. +14 −0 routes/packages.php
@@ -3,7 +3,6 @@
namespace REBELinBLUE\Deployer\Providers;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use Lubusin\Decomposer\Controllers\DecomposerController;
/**
* The route service provider.
@@ -54,11 +53,8 @@ protected function mapWebRoutes()
// Admin routes
$this->middleware(['web', 'auth', 'jwt'])->namespace($this->namespace)->group(base_path('routes/admin.php'));
// Laravel decomposer
$this->app->router
->prefix('admin')
->middleware(['web', 'auth', 'jwt'])
->get('sysinfo', DecomposerController::class . '@index');
// Packages
$this->middleware(['web', 'auth', 'jwt'])->group(base_path('routes/packages.php'));
}
/**
View
@@ -39,6 +39,7 @@
"laravel/tinker": "1.0.*",
"lubusin/laravel-decomposer": "^1.0",
"mccool/laravel-auto-presenter": "^5.0",
"melihovv/laravel-log-viewer": "^1.2",
"michele-angioni/multi-language": "0.3",
"pda/pheanstalk": "~3.1",
"pragmarx/google2fa": "^1.0.0",
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -184,6 +184,7 @@
NotificationChannels\Twilio\TwilioProvider::class,
PragmaRX\Google2FA\Vendor\Laravel\ServiceProvider::class,
Tymon\JWTAuth\Providers\JWTAuthServiceProvider::class,
Melihovv\LaravelLogViewer\LaravelLogViewerServiceProvider::class,
/*
* Application Service Providers...
View
@@ -0,0 +1,14 @@
<?php
/** @var \Illuminate\Routing\Router $router */
use Lubusin\Decomposer\Controllers\DecomposerController;
use Melihovv\LaravelLogViewer\LaravelLogViewerController;
$router->group(['prefix' => 'admin'], function () use ($router) {
// Laravel decomposer
$router->get('sysinfo', DecomposerController::class . '@index');
// Laravel log viewer
$router->get('logs', LaravelLogViewerController::class . '@index');
});

0 comments on commit 3c9c41f

Please sign in to comment.