Total Complexity | 4 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class MailboxServiceProvider extends ServiceProvider |
||
12 | { |
||
13 | /** |
||
14 | * Bootstrap the application services. |
||
15 | */ |
||
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 | } |
||
36 | |||
37 | /** |
||
38 | * Register the application services. |
||
39 | */ |
||
40 | public function register() |
||
50 | }); |
||
51 | } |
||
52 | |||
53 | protected function registerDriver() |
||
58 |