Modules/Notify/Providers/NotifyServiceProvider.php
/**
     * Boot the application events.
     *
     * @return void
     */
Boot the application events.
@return void
Boot the application events . @return void
public function boot()
    {
        $this->registerTranslations();
        $this->registerConfig();
        $this->registerViews();
        $this->loadMigrationsFrom(module_path($this->moduleName, 'Database/Migrations'));
        $this->app->when(WebPushChannel::class)
        ->needs(WebPush::class)
        ->give(function () {
            return (new WebPush(
                $this->webPushAuth(), [], 30, config('notify.client_options', [])
            ))->setReuseVAPIDHeaders(true);
        });
        $this->app->when(WebPushChannel::class)
            ->needs(ReportHandlerInterface::class)
            ->give(ReportHandler::class);
    }
public function boot ( ) { $ this -> registerTranslations ( ) ; $ this -> registerConfig ( ) ; $ this -> registerViews ( ) ; $ this -> loadMigrationsFrom ( module_path ( $ this -> moduleName , 'Database/Migrations' ) ) ; $ this -> app -> when ( WebPushChannel :: class ) -> needs ( WebPush :: class ) -> give ( function ( ) { return ( new WebPush ( $ this -> webPushAuth ( ) , [ ] , 30 , config ( 'notify.client_options' , [ ] ) ) ) -> setReuseVAPIDHeaders ( true ) ; } ) ; $ this -> app -> when ( WebPushChannel :: class ) -> needs ( ReportHandlerInterface :: class ) -> give ( ReportHandler :: class ) ; }
Boot the application events.
Boot the application events .