File tree Expand file tree Collapse file tree 2 files changed +7
-25
lines changed Expand file tree Collapse file tree 2 files changed +7
-25
lines changed Original file line number Diff line number Diff line change 1
1
laravel-admin-ext/log-viewer
2
2
============================
3
3
4
- ## Installation
5
-
6
- ```
7
- $ composer require laravel-admin-ext/log-viewer -vvv
8
-
9
- ```
4
+ ## Screenshot
10
5
11
- Open ` app/Providers/AppServiceProvider.php ` , and call the ` LogViewer::boot ` method within the ` boot ` method:
6
+ ![ wx20170809-165644 ] ( https://user-images.githubusercontent.com/1479100/29113581-fe48fd86-7d23-11e7-9ee7-9680957171ee.png )
12
7
13
- ``` php
14
- <?php
15
-
16
- namespace App\Providers;
17
-
18
- use Encore\Admin\LogViewer\LogViewer;
19
- use Illuminate\Support\ServiceProvider;
8
+ ## Installation
20
9
21
- class AppServiceProvider extends ServiceProvider
22
- {
23
- public function boot()
24
- {
25
- LogViewer::boot();
26
- }
27
- }
28
10
```
11
+ $ composer require laravel-admin-ext/log-viewer -vvv
29
12
30
- At last run:
31
-
32
- ```
33
13
$ php artisan admin:import log-viewer
34
14
```
35
15
36
- Finally open ` http://localhost/admin/logs ` .
16
+ Open ` http://localhost/admin/logs ` .
37
17
38
18
License
39
19
------------
Original file line number Diff line number Diff line change @@ -9,5 +9,7 @@ class LogViewerServiceProvider extends ServiceProvider
9
9
public function boot ()
10
10
{
11
11
$ this ->loadViewsFrom (__DIR__ .'/../resources/views ' , 'laravel-admin-logs ' );
12
+
13
+ LogViewer::boot ();
12
14
}
13
15
}
You can’t perform that action at this time.
0 commit comments