Completed
Branch master (a6481d)
by Fèvre
02:09
created

BootstrapServiceProvider::boot()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 31
Code Lines 24

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 31
rs 8.8571
c 0
b 0
f 0
cc 1
eloc 24
nc 1
nop 0
1
<?php
2
namespace Xetaravel\Providers;
3
4
use Collective\Html\FormFacade as Form;
5
use Illuminate\Support\ServiceProvider;
6
7
class BootstrapServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Bootstrap any application services.
11
     *
12
     * @return void
13
     */
14
    public function boot()
15
    {
16
        Form::component(
17
            'bsText',
18
            'components.form.text',
19
            ['name', 'label' => null, 'value' => null, 'attributes' => []]
20
        );
21
        Form::component(
22
            'bsEmail',
23
            'components.form.email',
24
            ['name', 'label' => null, 'value' => null, 'attributes' => []]
25
        );
26
        Form::component(
27
            'bsTextarea',
28
            'components.form.textarea',
29
            ['name', 'label' => null, 'value' => null, 'attributes' => []]
30
        );
31
        Form::component('bsPassword', 'components.form.password', ['name', 'label' => null, 'attributes' => []]);
32
        Form::component('bsCheckbox', 'components.form.checkbox', [
33
            'name',
34
            'value' => 1,
35
            'checked' => null,
36
            'label' => null,
37
            'attributes' => []
38
        ]);
39
        Form::component(
40
            'bsInputGroup',
41
            'components.form.input-group',
42
            ['name', 'label' => null, 'value' => null, 'attributes' => []]
43
        );
44
    }
45
}
46