boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 1
Metric Value
cc 1
eloc 6
c 2
b 1
f 1
nc 1
nop 0
dl 0
loc 11
rs 10
1
<?php
2
3
namespace Chuckbe\Chuckcms\Providers;
4
5
use Illuminate\Support\Facades\View;
6
use Illuminate\Support\ServiceProvider;
7
8
class ChuckDashboardSidebarViewComposerServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * Register bindings in the container.
12
     *
13
     * @return void
14
     */
15
    public function boot()
16
    {
17
        // Using class based composers...
18
        View::composer(
19
            'chuckcms::backend.includes.sidebar',
20
            'Chuckbe\Chuckcms\ViewComposers\SidebarComposer'
21
        );
22
23
        View::composer(
24
            'chuckcms::backend.includes.navigation',
25
            'Chuckbe\Chuckcms\ViewComposers\SidebarComposer'
26
        );
27
    }
28
29
    /**
30
     * Register the service provider.
31
     *
32
     * @return void
33
     */
34
    public function register()
35
    {
36
        //
37
    }
38
}
39