src/Hassansin/DBCart/Models/Cart.php
public static function current($instance_name = 'default', $save_on_demand = null){
        $save_on_demand = is_null($save_on_demand)? config('cart.save_on_demand', false): $save_on_demand;
        return static::init($instance_name, $save_on_demand);
    }
public static function current($instance_name = 'default', $save_on_demand = null){
        $save_on_demand = is_null($save_on_demand)? config('cart.save_on_demand', false): $save_on_demand;
        return static::init($instance_name, $save_on_demand);
    }
public static function current ( $ instance_name = 'default' , $ save_on_demand = null ) { $ save_on_demand = is_null ( $ save_on_demand ) ? config ( 'cart.save_on_demand' , false ) : $ save_on_demand ; return static :: init ( $ instance_name , $ save_on_demand ) ; }
Get the current cart instance

@param  string  $instance_name
@return mixed
Get the current cart instance