FormServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 9 1
1
<?php
2
3
4
namespace Saimondev03;
5
6
use Illuminate\Support\Facades\Blade;
7
use Illuminate\Support\ServiceProvider;
8
9
class FormServiceProvider extends ServiceProvider
10
{
11
    public function boot()
12
    {
13
        $this->mergeConfigFrom(__DIR__.'/../config/form.php', 'form');
14
        $this->loadViewsFrom(__DIR__.'/../resources/views', 'saimondev03-form');
15
        //$this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'form');
16
        $this->loadJsonTranslationsFrom(__DIR__.'/../resources/lang');
17
18
        Blade::component('Saimondev03\Form', 'form');
19
        Blade::component('Saimondev03\Field', 'field');
20
    }
21
}
22