Passed
Pull Request — master (#1558)
by Darko
12:16 queued 04:35
created

VoltServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 5
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace App\Providers;
4
5
use Illuminate\Support\ServiceProvider;
6
use Livewire\Volt\Volt;
7
8
class VoltServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * Register services.
12
     */
13
    public function register(): void
14
    {
15
        //
16
    }
17
18
    /**
19
     * Bootstrap services.
20
     */
21
    public function boot(): void
22
    {
23
        Volt::mount([
24
            config('livewire.view_path', resource_path('views/livewire')),
25
            resource_path('views/pages'),
26
        ]);
27
    }
28
}
29