LaravelHelperServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 10
c 2
b 0
f 0
dl 0
loc 32
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 2 1
A boot() 0 19 1
1
<?php
2
3
namespace CleaniqueCoders\LaravelHelper;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class LaravelHelperServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Bootstrap the application services.
11
     */
12
    public function boot()
13
    {
14
        /*
15
         * Configuration
16
         */
17
        $this->publishes([
18
            __DIR__.'/../config/helper.php' => config_path('helper.php'),
19
        ], 'laravel-helper-config');
20
        $this->mergeConfigFrom(
21
            __DIR__.'/../config/helper.php',
22
            'helper'
23
        );
24
25
        /*
26
         * View
27
         */
28
        $this->loadViewsFrom(__DIR__.'/../views', 'laravel-helper-view');
29
        $this->publishes([
30
            __DIR__.'/../views' => resource_path('views/vendor/laravel-helper'),
31
        ]);
32
    }
33
34
    /**
35
     * Register the application services.
36
     */
37
    public function register()
38
    {
39
    }
40
}
41