Total Complexity | 5 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class LaravelTracerServiceProvider extends ServiceProvider |
||
9 | { |
||
10 | /** |
||
11 | * Bootstrap the application services. |
||
12 | */ |
||
13 | public function boot() |
||
14 | { |
||
15 | if ($this->app->runningInConsole()) { |
||
16 | $this->publishes([ |
||
17 | __DIR__ . '/../config/config.php' => config_path('laravel-tracer.php'), |
||
18 | ], 'config'); |
||
19 | |||
20 | if (!class_exists('CreateUserRequestsTable')) { |
||
21 | $this->publishes([ |
||
22 | __DIR__ . '/../database/migrations/create_user_requests_table.php.stub' => database_path('migrations/' . date('Y_m_d_His', time()) . '_create_user_requests_table.php'), |
||
23 | ], 'migrations'); |
||
24 | } |
||
25 | } |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * Register the application services. |
||
30 | */ |
||
31 | public function register() |
||
43 | }); |
||
44 | } |
||
46 |