Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
2 / 2
CRAP
100.00% covered (success)
100.00%
4 / 4
SiteProvider
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
2 / 2
2
100.00% covered (success)
100.00%
4 / 4
 boot
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
2 / 2
 register
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
2 / 2
1<?php
2namespace Qmp\Laravel\Site\Providers;
3
4use Illuminate\Support\ServiceProvider;
5use Qmp\Laravel\MicroService\DbConnection\DbConnection;
6
7class SiteProvider extends ServiceProvider
8{
9    /**
10     * Boot the service provider.
11     *
12     * @return void
13     */
14    public function boot()
15    {
16        // Load migration
17        $this->loadMigrationsFrom(__DIR__.'/../database/migrations/');
18    }
19    
20    public function register()
21    {
22        DbConnection::mergeFromFile(realpath(__DIR__.'/../../config/connection.php'));
23 
24    }
25
26}