LaravelAdminViewComposerServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 28
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 4 1
A register() 0 4 1
1
<?php
2
3
namespace ZaLaravel\LaravelAdmin;
4
5
use Illuminate\Support\Facades\View;
6
use Illuminate\Support\ServiceProvider;
7
8
/**
9
 * Class LaravelAdminViewComposerServiceProvider
10
 * @package ZaLaravel\LaravelAdmin
11
 */
12
class LaravelAdminViewComposerServiceProvider extends ServiceProvider{
13
14
15
    /**
16
     * Bootstrap any application services.
17
     *
18
     * @return void
19
     */
20
    public function boot()
21
    {
22
        View::composer('laravel-admin::layout', 'ZaLaravel\LaravelAdmin\Composers\LayoutComposer');
23
    }
24
25
    /**
26
     * Register any application services.
27
     *
28
     * This service provider is a great spot to register your various container
29
     * bindings with the application. As you can see, we are registering our
30
     * "Registrar" implementation here. You can add your own bindings too!
31
     *
32
     * @return void
33
     */
34
    public function register()
35
    {
36
        //
37
    }
38
39
}