LukePOLO\LaraCart\LaraCartServiceProvider::boot PHP Method

boot() public method

Perform post-registration booting of services.
public boot ( ) : void
return void
    public function boot()
    {
        $this->publishes([__DIR__ . '/config/laracart.php' => config_path('laracart.php')]);
        $this->mergeConfigFrom(__DIR__ . '/config/laracart.php', 'laracart');
        if (!$this->migrationHasAlreadyBeenPublished()) {
            $this->publishes([__DIR__ . '/database/migrations/add_cart_session_id_to_users_table.php.stub' => database_path('migrations/' . date('Y_m_d_His') . '_add_cart_session_id_to_users_table.php')], 'migrations');
        }
    }