| Conditions | 3 |
| Paths | 3 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | public function boot() |
||
| 28 | { |
||
| 29 | if ($this->app->runningInConsole()) { |
||
| 30 | // Publish the config file. |
||
| 31 | $this->publishes([ |
||
| 32 | __DIR__ . '/../config/passwords.php' => config_path('passwords.php'), |
||
| 33 | ], 'config'); |
||
| 34 | |||
| 35 | // Publish the database migrations |
||
| 36 | if (! class_exists('CreatePasswordsTable')) { |
||
| 37 | $this->publishes([ |
||
| 38 | __DIR__ . '/../database/migrations/create_passwords_table.php.stub' => database_path('migrations/' . date('Y_m_d_His', time()) . '_create_passwords_table.php'), |
||
| 39 | ], 'migrations'); |
||
| 40 | } |
||
| 41 | |||
| 42 | // Register console commands. |
||
| 43 | $this->commands([ |
||
| 44 | GeneratePasswordKeyCommand::class, |
||
| 45 | ]); |
||
| 48 | } |