Completed
Branch master (a6481d)
by Fèvre
02:09
created

AppServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 27
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 9 1
A register() 0 4 1
1
<?php
2
namespace Xetaravel\Providers;
3
4
use Illuminate\Support\ServiceProvider;
5
use Illuminate\Support\Facades\View;
6
use Illuminate\Pagination\Paginator;
7
8
class AppServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * Bootstrap any application services.
12
     *
13
     * @return void
14
     */
15
    public function boot()
16
    {
17
        // View
18
        $this->app['view']->addNamespace('Admin', base_path() . '/resources/views/Admin');
19
        $this->app['view']->addNamespace('Blog', base_path() . '/resources/views/Blog');
20
21
        // Pagination
22
        Paginator::defaultView('vendor.pagination.bootstrap-4');
23
    }
24
25
    /**
26
     * Register any application services.
27
     *
28
     * @return void
29
     */
30
    public function register()
31
    {
32
        //
33
    }
34
}
35