Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
15 | public function boot() |
||
16 | { |
||
17 | $this->publishes([ |
||
18 | __DIR__.'/../resources/config/laravel-request.php' => config_path('laravel-request.php'), |
||
19 | ], 'config'); |
||
20 | |||
21 | // |
||
22 | if (!class_exists('CreateRequestsTable')) { |
||
23 | // Publish the migration |
||
24 | $timestamp = date('Y_m_d_His', time()); |
||
25 | $this->publishes([ |
||
26 | __DIR__.'/../resources/migrations/create_requests_table.stub' => database_path('migrations/'.$timestamp.'_create_requests_table.php'), |
||
27 | ], 'migrations'); |
||
28 | } |
||
29 | |||
30 | } |
||
31 | |||
43 |