| Conditions | 2 |
| Paths | 2 |
| Total Lines | 19 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function boot() |
||
| 17 | { |
||
| 18 | if (! class_exists('CreateMailboxInboundEmailsTable')) { |
||
| 19 | $this->publishes([ |
||
| 20 | __DIR__.'/../database/migrations/create_mailbox_inbound_emails_table.php.stub' => database_path('migrations/'.date('Y_m_d_His', time()).'_create_mailbox_inbound_emails_table.php'), |
||
| 21 | ], 'migrations'); |
||
| 22 | } |
||
| 23 | |||
| 24 | $this->publishes([ |
||
| 25 | __DIR__.'/../config/mailbox.php' => config_path('mailbox.php'), |
||
| 26 | ], 'config'); |
||
| 27 | |||
| 28 | Route::aliasMiddleware('laravel-mailbox', MailboxBasicAuthentication::class); |
||
| 29 | |||
| 30 | $this->commands([ |
||
| 31 | Console\CleanEmails::class, |
||
| 32 | ]); |
||
| 33 | |||
| 34 | $this->registerDriver(); |
||
| 35 | } |
||
| 58 |