ServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 12 1
A register() 0 5 1
1
<?php
2
3
namespace Helldar\ShortUrl;
4
5
class ServiceProvider extends \Illuminate\Support\ServiceProvider
6
{
7
    public function boot()
8
    {
9
        $this->publishes([
10
            __DIR__ . '/../config/settings.php' => $this->app->configPath('short_url.php'),
11
        ], 'config');
12
13
        $this->loadMigrationsFrom(
14
            __DIR__ . '/../database/migrations'
15
        );
16
17
        $this->loadRoutesFrom(
18
            __DIR__ . '/../routes/web.php'
19
        );
20
    }
21
22
    public function register()
23
    {
24
        $this->mergeConfigFrom(
25
            __DIR__ . '/../config/settings.php',
26
            'short_url'
27
        );
28
    }
29
}
30