Conditions | 2 |
Paths | 2 |
Total Lines | 23 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | public function boot() |
||
14 | { |
||
15 | /* |
||
16 | * Publish configuration file |
||
17 | */ |
||
18 | $this->publishes([ |
||
19 | __DIR__ . '/../config/log-envelope.php' => config_path('yaro.log-envelope.php'), |
||
|
|||
20 | ]); |
||
21 | |||
22 | /* |
||
23 | * Publish migration if not published yet |
||
24 | */ |
||
25 | if (!$this->migrationHasAlreadyBeenPublished()) { |
||
26 | $timestamp = date('Y_m_d_His', time()); |
||
27 | $this->publishes([ |
||
28 | __DIR__ . '/../resources/migrations/create_exceptions_table.php.stub' => database_path('migrations/' . $timestamp . '_create_exceptions_table.php'), |
||
29 | ], 'migrations'); |
||
30 | } |
||
31 | |||
32 | $this->app['view']->addNamespace('log-envelope', __DIR__ . '/../resources/views'); |
||
33 | |||
34 | $loader = \Illuminate\Foundation\AliasLoader::getInstance(); |
||
35 | $loader->alias('LogEnvelope', 'Yaro\LogEnvelope\Facade'); |
||
36 | } |
||
62 |