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

VoltServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 2 1
A boot() 0 5 1
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