Skip to content

Commit

Permalink
Fix layout name in backpack v4
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoarandah committed Feb 26, 2020
1 parent caaefa8 commit 49e5583
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,24 @@ Integrate [ArcaneDev/LogViewer](https://github.com/ARCANEDEV/LogViewer) in your

- ![Laravel Backpack](https://github.com/Laravel-Backpack/Base)

- Daily logs enabled in your .env file `LOG_CHANNEL=daily`

## Installation

Make sure you have set your logs to "daily" in your .env file

`LOG_CHANNEL=daily`

Run this commands:

```BASH
composer require eduardoarandah/backpacklogviewer

php artisan vendor:publish --provider="EduardoArandaH\BackpackLogViewer\BackpackLogViewerServiceProvider"

php artisan backpack:base:add-sidebar-content "<li><a href='{{route(\"log-viewer::logs.list\")}}'><i class='fa fa-history'></i> <span>Logs</span></a></li>"
php artisan backpack:add-sidebar-content "<li class='nav-item'><a class='nav-link' href='{{route(\"log-viewer::logs.list\")}}'><i class='nav-icon fa fa-history'></i> {{ trans('Logs') }}</a></li>"
```

## More options
## More options

More options available in /config/log-viewer.php

Expand Down
10 changes: 5 additions & 5 deletions src/resources/views/_master.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@extends('backpack::layout')
@section('after_styles')
@extends(backpack_view('layouts.top_left'))
@section('after_styles')
<style>
/*extra*/
.logviewer-menu-item {
Expand Down Expand Up @@ -264,8 +264,8 @@
@append

@section('header')
<section class="content-header">
<section class="content-header">

<span class="text-muted pull-right hidden-xs">
LogViewer - <span class="label label-info">version {{ log_viewer()->version() }}</span>
</span>
Expand All @@ -276,7 +276,7 @@
<a class="logviewer-menu-item" href="{{ route('log-viewer::logs.list') }}">
<i class="fa fa-archive"></i> Logs
</a>

</section>
@endsection

Expand Down

0 comments on commit 49e5583

Please sign in to comment.