FormServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 5
c 2
b 0
f 0
dl 0
loc 9
rs 10
cc 1
nc 1
nop 0
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