Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoarandah committed Dec 13, 2017
1 parent 8fb57de commit eaf2a12
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
13 changes: 4 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,22 @@ https://github.com/Laravel-Backpack/Base
## Installation

composer require arcanedev/log-viewer
php artisan log-viewer:publish --tag=config

composer require eduardoarandah/backpacklogviewer
php artisan vendor:publish --provider="EduardoArandaH\BackpackLogViewer\BackpackLogViewerServiceProvider"

This will install packages and required views in resources/views/vendor/log-viewer
(these views will take precedence over original log-viewer views)

## Configuration

You must have a daily log

In your config/app.php
Set a daily log in config/app.php

'log' => 'daily',

## Security

To secure Log Viewer, add 'admin' middleware to your .env file with this line
Add 'admin' middleware to your .env file

ARCANEDEV_LOGVIEWER_MIDDLEWARE=web,admin

Expand Down Expand Up @@ -61,10 +60,6 @@ add this line

By default, log-viewer URL is http://website/log-viewer if you want to change to /admin

publish config file:

php artisan log-viewer:publish --tag=config

in config/log-viewer.php file change your route:

'prefix' => 'admin/log-viewer',
8 changes: 3 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
],
"require": {
"illuminate/support": "~5.1",
"php" : "~5.6|~7.0"
"arcanedev/log-viewer": "4.*",
"php":">=7.0"
},
"require-dev": {
"phpunit/phpunit" : ">=5.4.3",
Expand All @@ -41,10 +42,7 @@
"check-style": "phpcs -p --standard=PSR2 --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 src tests",
"fix-style": "phpcbf -p --standard=PSR2 --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 src tests"
},
"extra": {
"branch-alias": {
"dev-master": "1.0-dev"
},
"extra": {
"extra": {
"laravel": {
"providers": [
Expand Down

0 comments on commit eaf2a12

Please sign in to comment.