1
- <?php namespace Rap2hpoutre \LaravelLogViewer ;
1
+ <?php
2
+
3
+ namespace Rap2hpoutre \LaravelLogViewer ;
2
4
3
5
use Illuminate \Support \ServiceProvider ;
4
6
5
- class LaravelLogViewerServiceProvider extends ServiceProvider {
7
+ class LaravelLogViewerServiceProvider extends ServiceProvider
8
+ {
6
9
/**
7
10
* Bootstrap the application events.
8
11
*
@@ -11,21 +14,20 @@ class LaravelLogViewerServiceProvider extends ServiceProvider {
11
14
public function boot ()
12
15
{
13
16
if (method_exists ($ this , 'package ' )) {
14
- $ this ->package ('rap2hpoutre/laravel-log-viewer ' , 'laravel-log-viewer ' , __DIR__ . '/../../ ' );
17
+ $ this ->package ('rap2hpoutre/laravel-log-viewer ' , 'laravel-log-viewer ' , __DIR__ . '/../../ ' );
15
18
}
16
19
17
20
if (method_exists ($ this , 'loadViewsFrom ' )) {
18
21
$ this ->loadViewsFrom (__DIR__ .'/../../views ' , 'laravel-log-viewer ' );
19
22
}
20
-
23
+
21
24
if (method_exists ($ this , 'publishes ' )) {
22
25
$ this ->publishes ([
23
- __DIR__ .'/../../views ' => base_path ('/resources/views/vendor/laravel-log-viewer ' ),
26
+ __DIR__ .'/../../views ' => base_path ('/resources/views/vendor/laravel-log-viewer ' ),
24
27
], 'views ' );
25
28
$ this ->publishes ([
26
29
__DIR__ .'/../../config/logviewer.php ' => $ this ->config_path ('logviewer.php ' ),
27
30
]);
28
-
29
31
}
30
32
}
31
33
@@ -42,12 +44,12 @@ public function register()
42
44
/**
43
45
* Get the configuration path.
44
46
*
45
- * @param string $path
47
+ * @param string $path
46
48
* @return string
47
49
*/
48
50
private function config_path ($ path = '' )
49
51
{
50
- return function_exists ('config_path ' ) ? config_path ($ path ) : app ()->basePath () . DIRECTORY_SEPARATOR . 'config ' . ($ path ? DIRECTORY_SEPARATOR . $ path : $ path );
52
+ return function_exists ('config_path ' ) ? config_path ($ path ) : app ()->basePath (). DIRECTORY_SEPARATOR . 'config ' . ($ path ? DIRECTORY_SEPARATOR . $ path : $ path );
51
53
}
52
54
53
55
}
0 commit comments