| Conditions | 3 |
| Paths | 3 |
| Total Lines | 21 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | public function boot() |
||
| 13 | { |
||
| 14 | if ($this->app->runningInConsole()) { |
||
| 15 | $this->publishes([ |
||
| 16 | __DIR__.'/../config/config.php' => config_path('confirmation.php'), |
||
| 17 | ], 'config'); |
||
| 18 | |||
| 19 | if (! class_exists('AddConfirmationFieldsToUsers')) { |
||
| 20 | $this->publishes([ |
||
| 21 | __DIR__.'/../database/migrations/add_confirmation_fields_to_users.php.stub' => database_path('migrations/'.date('Y_m_d_His', time()).'_add_confirmation_fields_to_users.php'), |
||
| 22 | ], 'migrations'); |
||
| 23 | } |
||
| 24 | |||
| 25 | $this->publishes([ |
||
| 26 | __DIR__.'/../resources/lang' => resource_path('lang/vendor/confirmation'), |
||
| 27 | ]); |
||
| 28 | |||
| 29 | } |
||
| 30 | |||
| 31 | $this->loadTranslationsFrom(__DIR__.'/../resources/lang/', 'confirmation'); |
||
| 32 | } |
||
| 33 | |||
| 42 |