MediaServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

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

2 Methods

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