app/maguttiCms/Domain/Store/Action/DisableUserAbandonmentCartAction.php
/**
     * SET AS DISABLED INACTIVE USER CART
     * @return false|int
     */
SET AS DISABLED INACTIVE USER CART
@return false|int
SET AS DISABLED INACTIVE USER CART @return false|int
function disable(){
        if(!$this->user) return false;
        if($this->user->carts()->where('status',CART_NEW)->count()){
            return $this->user->carts()
                              ->where('status',CART_NEW)
                              ->update(['status'=>CART_DISABLED]);
        }
    }
function disable ( ) { if ( ! $ this -> user ) return false ; if ( $ this -> user -> carts ( ) -> where ( 'status' , CART_NEW ) -> count ( ) ) { return $ this -> user -> carts ( ) -> where ( 'status' , CART_NEW ) -> update ( [ 'status' => CART_DISABLED ] ) ; } }
SET AS DISABLED INACTIVE USER CART
 @return false|int
SET AS DISABLED INACTIVE USER CART @return false|int