ServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

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