LaravelAdminServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 39
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 16 1
A register() 0 3 1
A provides() 0 4 1
1
<?php
2
namespace ZaLaravel\LaravelAdmin;
3
use Illuminate\Support\ServiceProvider;
4
/**
5
 * Class LaravelAdminServiceProvider
6
 * @package ZaLaravel\LaravelAdmin
7
 */
8
class LaravelAdminServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * @return void
12
     */
13
    public function boot()
14
    {
15
        $this->loadViewsFrom(__DIR__ . '/../../views', 'laravel-admin');
16
17
        $this->publishes([
18
            __DIR__ . '/../../../public/css' => public_path('css/admin')
19
        ], 'public');
20
21
        $this->publishes([
22
            __DIR__ . '/../../../public/js' => public_path('js/admin')
23
        ], 'public');
24
25
        $this->publishes([
26
            __DIR__.'/../../../config/laravel-admin.php' => config_path('laravel-admin.php'),
27
        ]);
28
    }
29
    /**
30
     * Register the service provider.
31
     *
32
     * @return void
33
     */
34
    public function register()
35
    {
36
    }
37
    /**
38
     * Get the services provided by the provider.
39
     *
40
     * @return array
41
     */
42
    public function provides()
43
    {
44
        return [];
45
    }
46
}