public function boot()
    {
        $this->loadViewsFrom(__DIR__.'/resources/views', 'notifications');

        if ($this->app->runningInConsole()) {
            $this->publishes([
                __DIR__.'/resources/views' => $this->app->basePath().'/resources/views/vendor/notifications',
            ], 'laravel-notifications');
        }

        if (version_compare($this->getAppVersion(), '5.2', '<')) {
            $this->app->make(Bus::class)->maps([
                SendQueuedNotifications::class => SendQueuedNotificationsHandler::class . '@handle',
            ]);
        }
    }
public function boot()
    {
        $this->loadViewsFrom(__DIR__.'/resources/views', 'notifications');

        if ($this->app->runningInConsole()) {
            $this->publishes([
                __DIR__.'/resources/views' => $this->app->basePath().'/resources/views/vendor/notifications',
            ], 'laravel-notifications');
        }

        if (version_compare($this->getAppVersion(), '5.2', '<')) {
            $this->app->make(Bus::class)->maps([
                SendQueuedNotifications::class => SendQueuedNotificationsHandler::class . '@handle',
            ]);
        }
    }
public function boot ( ) { $ this -> loadViewsFrom ( __DIR__ . '/resources/views' , 'notifications' ) ; if ( $ this -> app -> runningInConsole ( ) ) { $ this -> publishes ( [ __DIR__ . '/resources/views' => $ this -> app -> basePath ( ) . '/resources/views/vendor/notifications' , ] , 'laravel-notifications' ) ; } if ( version_compare ( $ this -> getAppVersion ( ) , '5.2' , '<' ) ) { $ this -> app -> make ( Bus :: class ) -> maps ( [ SendQueuedNotifications :: class => SendQueuedNotificationsHandler :: class . '@handle' , ] ) ; } }
Boot the application services.

@return void
Boot the application services .