public function boot()
    {
        if ($this->app->runningInConsole()) {
            $this->publishes([
                __DIR__.'/../config/cart_manager.php' => config_path('cart_manager.php'),
            ], 'laravel-cart-manager-config');

            $this->publishes([
                __DIR__.'/../database/migrations/' => database_path('migrations'),
            ], 'laravel-cart-manager-migrations');

            $this->commands([ClearCartDataCommand::class]);
        }

        CartModel::observe(CartObserver::class);
    }
public function boot()
    {
        if ($this->app->runningInConsole()) {
            $this->publishes([
                __DIR__.'/../config/cart_manager.php' => config_path('cart_manager.php'),
            ], 'laravel-cart-manager-config');

            $this->publishes([
                __DIR__.'/../database/migrations/' => database_path('migrations'),
            ], 'laravel-cart-manager-migrations');

            $this->commands([ClearCartDataCommand::class]);
        }

        CartModel::observe(CartObserver::class);
    }
public function boot ( ) { if ( $ this -> app -> runningInConsole ( ) ) { $ this -> publishes ( [ __DIR__ . '/../config/cart_manager.php' => config_path ( 'cart_manager.php' ) , ] , 'laravel-cart-manager-config' ) ; $ this -> publishes ( [ __DIR__ . '/../database/migrations/' => database_path ( 'migrations' ) , ] , 'laravel-cart-manager-migrations' ) ; $ this -> commands ( [ ClearCartDataCommand :: class ] ) ; } CartModel :: observe ( CartObserver :: class ) ; }
Publishes configuration file and registers error handler for Slack notification.

@return void
Publishes configuration file and registers error handler for Slack notification .