MediaServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 8
c 2
b 0
f 0
nc 1
nop 0
dl 0
loc 12
rs 10
1
<?php
2
3
namespace Khaleghi\Media;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class MediaServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Bootstrap services.
11
     *
12
     * @return void
13
     */
14
    public function boot()
15
    {
16
        $this->loadRoutesFrom(__DIR__.'/routes/web.php');
17
        $this->loadMigrationsFrom(__DIR__ .'/database/migrations');
18
        $this->loadViewsFrom(__DIR__.'/resources/views', 'media');
19
        $this->mergeConfigFrom(
20
            __DIR__.'/config/media.php', 'media'
21
        );
22
23
        $this->publishes([
24
            __DIR__.'/config/media.php' => config_path('media.php'),
25
            __DIR__.'/database/migrations/' => database_path('migrations'),
26
        ]);
27
28
    }
29
30
    /**
31
     * Register services.
32
     *
33
     * @return void
34
     */
35
    public function register()
36
    {
37
        //
38
    }
39
}
40