[2025-07-04 01:37:30] local.INFO: start validateCoupon api function  
[2025-07-04 01:37:30] local.INFO: Request is: Array
(
    [coupon] => 5838a552
    [content-type] => application/json
)
  
[2025-07-04 01:37:49] local.INFO: start validateCoupon api function  
[2025-07-04 01:37:49] local.INFO: Request is: Array
(
    [coupon] => tey8e625
    [content-type] => application/json
)
  
[2025-07-04 01:37:49] local.INFO: Coupon model: App\Models\Discount Object
(
    [timestamps] => 
    [guarded:protected] => Array
        (
            [0] => id
        )

    [appends:protected] => Array
        (
            [0] => code_length
        )

    [connection:protected] => mysql
    [table:protected] => discounts
    [primaryKey:protected] => id
    [keyType:protected] => int
    [incrementing] => 1
    [with:protected] => Array
        (
        )

    [withCount:protected] => Array
        (
        )

    [perPage:protected] => 15
    [exists] => 1
    [wasRecentlyCreated] => 
    [attributes:protected] => Array
        (
            [id] => 29169
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 31-5
            [discount_type] => percentage
            [source] => all
            [code] => tey8e625
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1764615660
            [created_at] => 1748714574
        )

    [original:protected] => Array
        (
            [id] => 29169
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 31-5
            [discount_type] => percentage
            [source] => all
            [code] => tey8e625
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1764615660
            [created_at] => 1748714574
        )

    [changes:protected] => Array
        (
        )

    [casts:protected] => Array
        (
        )

    [classCastCache:protected] => Array
        (
        )

    [dates:protected] => Array
        (
        )

    [dateFormat:protected] => 
    [dispatchesEvents:protected] => Array
        (
        )

    [observables:protected] => Array
        (
        )

    [relations:protected] => Array
        (
        )

    [touches:protected] => Array
        (
        )

    [hidden:protected] => Array
        (
        )

    [visible:protected] => Array
        (
        )

    [fillable:protected] => Array
        (
        )

)
  
[2025-07-04 01:37:49] local.INFO: start checkValidDiscount function  
[2025-07-04 01:37:49] local.INFO: App\Models\Discount Object
(
    [timestamps] => 
    [guarded:protected] => Array
        (
            [0] => id
        )

    [appends:protected] => Array
        (
            [0] => code_length
        )

    [connection:protected] => mysql
    [table:protected] => discounts
    [primaryKey:protected] => id
    [keyType:protected] => int
    [incrementing] => 1
    [with:protected] => Array
        (
        )

    [withCount:protected] => Array
        (
        )

    [perPage:protected] => 15
    [exists] => 1
    [wasRecentlyCreated] => 
    [attributes:protected] => Array
        (
            [id] => 29169
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 31-5
            [discount_type] => percentage
            [source] => all
            [code] => tey8e625
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1764615660
            [created_at] => 1748714574
        )

    [original:protected] => Array
        (
            [id] => 29169
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 31-5
            [discount_type] => percentage
            [source] => all
            [code] => tey8e625
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1764615660
            [created_at] => 1748714574
        )

    [changes:protected] => Array
        (
        )

    [casts:protected] => Array
        (
        )

    [classCastCache:protected] => Array
        (
        )

    [dates:protected] => Array
        (
        )

    [dateFormat:protected] => 
    [dispatchesEvents:protected] => Array
        (
        )

    [observables:protected] => Array
        (
        )

    [relations:protected] => Array
        (
        )

    [touches:protected] => Array
        (
        )

    [hidden:protected] => Array
        (
        )

    [visible:protected] => Array
        (
        )

    [fillable:protected] => Array
        (
        )

)
  
[2025-07-04 01:37:49] local.INFO: start checkValidDiscount function  
[2025-07-04 01:37:49] local.INFO: App\Models\Discount Object
(
    [timestamps] => 
    [guarded:protected] => Array
        (
            [0] => id
        )

    [appends:protected] => Array
        (
            [0] => code_length
        )

    [connection:protected] => mysql
    [table:protected] => discounts
    [primaryKey:protected] => id
    [keyType:protected] => int
    [incrementing] => 1
    [with:protected] => Array
        (
        )

    [withCount:protected] => Array
        (
        )

    [perPage:protected] => 15
    [exists] => 1
    [wasRecentlyCreated] => 
    [attributes:protected] => Array
        (
            [id] => 29169
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 31-5
            [discount_type] => percentage
            [source] => all
            [code] => tey8e625
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1764615660
            [created_at] => 1748714574
        )

    [original:protected] => Array
        (
            [id] => 29169
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 31-5
            [discount_type] => percentage
            [source] => all
            [code] => tey8e625
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1764615660
            [created_at] => 1748714574
        )

    [changes:protected] => Array
        (
        )

    [casts:protected] => Array
        (
        )

    [classCastCache:protected] => Array
        (
        )

    [dates:protected] => Array
        (
        )

    [dateFormat:protected] => 
    [dispatchesEvents:protected] => Array
        (
        )

    [observables:protected] => Array
        (
        )

    [relations:protected] => Array
        (
        )

    [touches:protected] => Array
        (
        )

    [hidden:protected] => Array
        (
        )

    [visible:protected] => Array
        (
        )

    [fillable:protected] => Array
        (
        )

)
  
[2025-07-04 01:39:48] local.INFO: start validateCoupon api function  
[2025-07-04 01:39:48] local.INFO: Request is: Array
(
    [coupon] => sp2bf738
    [content-type] => application/json
)
  
[2025-07-04 01:39:48] local.INFO: Coupon model: App\Models\Discount Object
(
    [timestamps] => 
    [guarded:protected] => Array
        (
            [0] => id
        )

    [appends:protected] => Array
        (
            [0] => code_length
        )

    [connection:protected] => mysql
    [table:protected] => discounts
    [primaryKey:protected] => id
    [keyType:protected] => int
    [incrementing] => 1
    [with:protected] => Array
        (
        )

    [withCount:protected] => Array
        (
        )

    [perPage:protected] => 15
    [exists] => 1
    [wasRecentlyCreated] => 
    [attributes:protected] => Array
        (
            [id] => 29172
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 31-5
            [discount_type] => percentage
            [source] => all
            [code] => sp2bf738
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1764615660
            [created_at] => 1748714574
        )

    [original:protected] => Array
        (
            [id] => 29172
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 31-5
            [discount_type] => percentage
            [source] => all
            [code] => sp2bf738
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1764615660
            [created_at] => 1748714574
        )

    [changes:protected] => Array
        (
        )

    [casts:protected] => Array
        (
        )

    [classCastCache:protected] => Array
        (
        )

    [dates:protected] => Array
        (
        )

    [dateFormat:protected] => 
    [dispatchesEvents:protected] => Array
        (
        )

    [observables:protected] => Array
        (
        )

    [relations:protected] => Array
        (
        )

    [touches:protected] => Array
        (
        )

    [hidden:protected] => Array
        (
        )

    [visible:protected] => Array
        (
        )

    [fillable:protected] => Array
        (
        )

)
  
[2025-07-04 01:39:48] local.INFO: start checkValidDiscount function  
[2025-07-04 01:39:48] local.INFO: App\Models\Discount Object
(
    [timestamps] => 
    [guarded:protected] => Array
        (
            [0] => id
        )

    [appends:protected] => Array
        (
            [0] => code_length
        )

    [connection:protected] => mysql
    [table:protected] => discounts
    [primaryKey:protected] => id
    [keyType:protected] => int
    [incrementing] => 1
    [with:protected] => Array
        (
        )

    [withCount:protected] => Array
        (
        )

    [perPage:protected] => 15
    [exists] => 1
    [wasRecentlyCreated] => 
    [attributes:protected] => Array
        (
            [id] => 29172
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 31-5
            [discount_type] => percentage
            [source] => all
            [code] => sp2bf738
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1764615660
            [created_at] => 1748714574
        )

    [original:protected] => Array
        (
            [id] => 29172
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 31-5
            [discount_type] => percentage
            [source] => all
            [code] => sp2bf738
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1764615660
            [created_at] => 1748714574
        )

    [changes:protected] => Array
        (
        )

    [casts:protected] => Array
        (
        )

    [classCastCache:protected] => Array
        (
        )

    [dates:protected] => Array
        (
        )

    [dateFormat:protected] => 
    [dispatchesEvents:protected] => Array
        (
        )

    [observables:protected] => Array
        (
        )

    [relations:protected] => Array
        (
        )

    [touches:protected] => Array
        (
        )

    [hidden:protected] => Array
        (
        )

    [visible:protected] => Array
        (
        )

    [fillable:protected] => Array
        (
        )

)
  
[2025-07-04 01:39:48] local.INFO: start checkValidDiscount function  
[2025-07-04 01:39:48] local.INFO: App\Models\Discount Object
(
    [timestamps] => 
    [guarded:protected] => Array
        (
            [0] => id
        )

    [appends:protected] => Array
        (
            [0] => code_length
        )

    [connection:protected] => mysql
    [table:protected] => discounts
    [primaryKey:protected] => id
    [keyType:protected] => int
    [incrementing] => 1
    [with:protected] => Array
        (
        )

    [withCount:protected] => Array
        (
        )

    [perPage:protected] => 15
    [exists] => 1
    [wasRecentlyCreated] => 
    [attributes:protected] => Array
        (
            [id] => 29172
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 31-5
            [discount_type] => percentage
            [source] => all
            [code] => sp2bf738
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1764615660
            [created_at] => 1748714574
        )

    [original:protected] => Array
        (
            [id] => 29172
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 31-5
            [discount_type] => percentage
            [source] => all
            [code] => sp2bf738
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1764615660
            [created_at] => 1748714574
        )

    [changes:protected] => Array
        (
        )

    [casts:protected] => Array
        (
        )

    [classCastCache:protected] => Array
        (
        )

    [dates:protected] => Array
        (
        )

    [dateFormat:protected] => 
    [dispatchesEvents:protected] => Array
        (
        )

    [observables:protected] => Array
        (
        )

    [relations:protected] => Array
        (
        )

    [touches:protected] => Array
        (
        )

    [hidden:protected] => Array
        (
        )

    [visible:protected] => Array
        (
        )

    [fillable:protected] => Array
        (
        )

)
  
[2025-07-04 01:40:29] local.INFO: start validateCoupon api function  
[2025-07-04 01:40:29] local.INFO: Request is: Array
(
    [coupon] => tsncstud
    [content-type] => application/json
)
  
[2025-07-04 01:40:29] local.INFO: Coupon model: App\Models\Discount Object
(
    [timestamps] => 
    [guarded:protected] => Array
        (
            [0] => id
        )

    [appends:protected] => Array
        (
            [0] => code_length
        )

    [connection:protected] => mysql
    [table:protected] => discounts
    [primaryKey:protected] => id
    [keyType:protected] => int
    [incrementing] => 1
    [with:protected] => Array
        (
        )

    [withCount:protected] => Array
        (
        )

    [perPage:protected] => 15
    [exists] => 1
    [wasRecentlyCreated] => 
    [attributes:protected] => Array
        (
            [id] => 29166
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 31-5
            [discount_type] => percentage
            [source] => all
            [code] => tsncstud
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1764615660
            [created_at] => 1748714574
        )

    [original:protected] => Array
        (
            [id] => 29166
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 31-5
            [discount_type] => percentage
            [source] => all
            [code] => tsncstud
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1764615660
            [created_at] => 1748714574
        )

    [changes:protected] => Array
        (
        )

    [casts:protected] => Array
        (
        )

    [classCastCache:protected] => Array
        (
        )

    [dates:protected] => Array
        (
        )

    [dateFormat:protected] => 
    [dispatchesEvents:protected] => Array
        (
        )

    [observables:protected] => Array
        (
        )

    [relations:protected] => Array
        (
        )

    [touches:protected] => Array
        (
        )

    [hidden:protected] => Array
        (
        )

    [visible:protected] => Array
        (
        )

    [fillable:protected] => Array
        (
        )

)
  
[2025-07-04 01:40:29] local.INFO: start checkValidDiscount function  
[2025-07-04 01:40:29] local.INFO: App\Models\Discount Object
(
    [timestamps] => 
    [guarded:protected] => Array
        (
            [0] => id
        )

    [appends:protected] => Array
        (
            [0] => code_length
        )

    [connection:protected] => mysql
    [table:protected] => discounts
    [primaryKey:protected] => id
    [keyType:protected] => int
    [incrementing] => 1
    [with:protected] => Array
        (
        )

    [withCount:protected] => Array
        (
        )

    [perPage:protected] => 15
    [exists] => 1
    [wasRecentlyCreated] => 
    [attributes:protected] => Array
        (
            [id] => 29166
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 31-5
            [discount_type] => percentage
            [source] => all
            [code] => tsncstud
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1764615660
            [created_at] => 1748714574
        )

    [original:protected] => Array
        (
            [id] => 29166
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 31-5
            [discount_type] => percentage
            [source] => all
            [code] => tsncstud
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1764615660
            [created_at] => 1748714574
        )

    [changes:protected] => Array
        (
        )

    [casts:protected] => Array
        (
        )

    [classCastCache:protected] => Array
        (
        )

    [dates:protected] => Array
        (
        )

    [dateFormat:protected] => 
    [dispatchesEvents:protected] => Array
        (
        )

    [observables:protected] => Array
        (
        )

    [relations:protected] => Array
        (
        )

    [touches:protected] => Array
        (
        )

    [hidden:protected] => Array
        (
        )

    [visible:protected] => Array
        (
        )

    [fillable:protected] => Array
        (
        )

)
  
[2025-07-04 01:40:29] local.INFO: start checkValidDiscount function  
[2025-07-04 01:40:29] local.INFO: App\Models\Discount Object
(
    [timestamps] => 
    [guarded:protected] => Array
        (
            [0] => id
        )

    [appends:protected] => Array
        (
            [0] => code_length
        )

    [connection:protected] => mysql
    [table:protected] => discounts
    [primaryKey:protected] => id
    [keyType:protected] => int
    [incrementing] => 1
    [with:protected] => Array
        (
        )

    [withCount:protected] => Array
        (
        )

    [perPage:protected] => 15
    [exists] => 1
    [wasRecentlyCreated] => 
    [attributes:protected] => Array
        (
            [id] => 29166
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 31-5
            [discount_type] => percentage
            [source] => all
            [code] => tsncstud
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1764615660
            [created_at] => 1748714574
        )

    [original:protected] => Array
        (
            [id] => 29166
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 31-5
            [discount_type] => percentage
            [source] => all
            [code] => tsncstud
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1764615660
            [created_at] => 1748714574
        )

    [changes:protected] => Array
        (
        )

    [casts:protected] => Array
        (
        )

    [classCastCache:protected] => Array
        (
        )

    [dates:protected] => Array
        (
        )

    [dateFormat:protected] => 
    [dispatchesEvents:protected] => Array
        (
        )

    [observables:protected] => Array
        (
        )

    [relations:protected] => Array
        (
        )

    [touches:protected] => Array
        (
        )

    [hidden:protected] => Array
        (
        )

    [visible:protected] => Array
        (
        )

    [fillable:protected] => Array
        (
        )

)
  
[2025-07-04 11:36:53] local.INFO: start validateCoupon web function  
[2025-07-04 11:36:53] local.INFO: Request is: Array
(
    [coupon] => unj6jku6
    [webinar_id] => 296
)
  
[2025-07-04 11:36:53] local.INFO: Coupon model: App\Models\Discount Object
(
    [timestamps] => 
    [guarded:protected] => Array
        (
            [0] => id
        )

    [appends:protected] => Array
        (
            [0] => code_length
        )

    [connection:protected] => mysql
    [table:protected] => discounts
    [primaryKey:protected] => id
    [keyType:protected] => int
    [incrementing] => 1
    [with:protected] => Array
        (
        )

    [withCount:protected] => Array
        (
        )

    [perPage:protected] => 15
    [exists] => 1
    [wasRecentlyCreated] => 
    [attributes:protected] => Array
        (
            [id] => 28600
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 10-6
            [discount_type] => percentage
            [source] => all
            [code] => unj6jku6
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1762778580
            [created_at] => 1746877470
        )

    [original:protected] => Array
        (
            [id] => 28600
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 10-6
            [discount_type] => percentage
            [source] => all
            [code] => unj6jku6
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1762778580
            [created_at] => 1746877470
        )

    [changes:protected] => Array
        (
        )

    [casts:protected] => Array
        (
        )

    [classCastCache:protected] => Array
        (
        )

    [dates:protected] => Array
        (
        )

    [dateFormat:protected] => 
    [dispatchesEvents:protected] => Array
        (
        )

    [observables:protected] => Array
        (
        )

    [relations:protected] => Array
        (
        )

    [touches:protected] => Array
        (
        )

    [hidden:protected] => Array
        (
        )

    [visible:protected] => Array
        (
        )

    [fillable:protected] => Array
        (
        )

)
  
[2025-07-04 11:36:53] local.INFO: start checkValidDiscount function  
[2025-07-04 11:36:53] local.INFO: App\Models\Discount Object
(
    [timestamps] => 
    [guarded:protected] => Array
        (
            [0] => id
        )

    [appends:protected] => Array
        (
            [0] => code_length
        )

    [connection:protected] => mysql
    [table:protected] => discounts
    [primaryKey:protected] => id
    [keyType:protected] => int
    [incrementing] => 1
    [with:protected] => Array
        (
        )

    [withCount:protected] => Array
        (
        )

    [perPage:protected] => 15
    [exists] => 1
    [wasRecentlyCreated] => 
    [attributes:protected] => Array
        (
            [id] => 28600
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 10-6
            [discount_type] => percentage
            [source] => all
            [code] => unj6jku6
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1762778580
            [created_at] => 1746877470
        )

    [original:protected] => Array
        (
            [id] => 28600
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 10-6
            [discount_type] => percentage
            [source] => all
            [code] => unj6jku6
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1762778580
            [created_at] => 1746877470
        )

    [changes:protected] => Array
        (
        )

    [casts:protected] => Array
        (
        )

    [classCastCache:protected] => Array
        (
        )

    [dates:protected] => Array
        (
        )

    [dateFormat:protected] => 
    [dispatchesEvents:protected] => Array
        (
        )

    [observables:protected] => Array
        (
        )

    [relations:protected] => Array
        (
        )

    [touches:protected] => Array
        (
        )

    [hidden:protected] => Array
        (
        )

    [visible:protected] => Array
        (
        )

    [fillable:protected] => Array
        (
        )

)
  
[2025-07-04 16:01:17] local.INFO: start validateCoupon web function  
[2025-07-04 16:01:17] local.INFO: Request is: Array
(
    [coupon] => sp2bf738
    [webinar_id] => 297
)
  
[2025-07-04 16:01:17] local.INFO: Coupon model: App\Models\Discount Object
(
    [timestamps] => 
    [guarded:protected] => Array
        (
            [0] => id
        )

    [appends:protected] => Array
        (
            [0] => code_length
        )

    [connection:protected] => mysql
    [table:protected] => discounts
    [primaryKey:protected] => id
    [keyType:protected] => int
    [incrementing] => 1
    [with:protected] => Array
        (
        )

    [withCount:protected] => Array
        (
        )

    [perPage:protected] => 15
    [exists] => 1
    [wasRecentlyCreated] => 
    [attributes:protected] => Array
        (
            [id] => 29172
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 31-5
            [discount_type] => percentage
            [source] => all
            [code] => sp2bf738
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1764615660
            [created_at] => 1748714574
        )

    [original:protected] => Array
        (
            [id] => 29172
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 31-5
            [discount_type] => percentage
            [source] => all
            [code] => sp2bf738
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1764615660
            [created_at] => 1748714574
        )

    [changes:protected] => Array
        (
        )

    [casts:protected] => Array
        (
        )

    [classCastCache:protected] => Array
        (
        )

    [dates:protected] => Array
        (
        )

    [dateFormat:protected] => 
    [dispatchesEvents:protected] => Array
        (
        )

    [observables:protected] => Array
        (
        )

    [relations:protected] => Array
        (
        )

    [touches:protected] => Array
        (
        )

    [hidden:protected] => Array
        (
        )

    [visible:protected] => Array
        (
        )

    [fillable:protected] => Array
        (
        )

)
  
[2025-07-04 16:01:55] local.INFO: start validateCoupon web function  
[2025-07-04 16:01:55] local.INFO: Request is: Array
(
    [coupon] => p867t75c
    [webinar_id] => 297
)
  
[2025-07-04 16:01:55] local.INFO: Coupon model: App\Models\Discount Object
(
    [timestamps] => 
    [guarded:protected] => Array
        (
            [0] => id
        )

    [appends:protected] => Array
        (
            [0] => code_length
        )

    [connection:protected] => mysql
    [table:protected] => discounts
    [primaryKey:protected] => id
    [keyType:protected] => int
    [incrementing] => 1
    [with:protected] => Array
        (
        )

    [withCount:protected] => Array
        (
        )

    [perPage:protected] => 15
    [exists] => 1
    [wasRecentlyCreated] => 
    [attributes:protected] => Array
        (
            [id] => 29174
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 31-5
            [discount_type] => percentage
            [source] => all
            [code] => p867t75c
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1764615660
            [created_at] => 1748714574
        )

    [original:protected] => Array
        (
            [id] => 29174
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 31-5
            [discount_type] => percentage
            [source] => all
            [code] => p867t75c
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1764615660
            [created_at] => 1748714574
        )

    [changes:protected] => Array
        (
        )

    [casts:protected] => Array
        (
        )

    [classCastCache:protected] => Array
        (
        )

    [dates:protected] => Array
        (
        )

    [dateFormat:protected] => 
    [dispatchesEvents:protected] => Array
        (
        )

    [observables:protected] => Array
        (
        )

    [relations:protected] => Array
        (
        )

    [touches:protected] => Array
        (
        )

    [hidden:protected] => Array
        (
        )

    [visible:protected] => Array
        (
        )

    [fillable:protected] => Array
        (
        )

)
  
[2025-07-04 16:01:55] local.INFO: start checkValidDiscount function  
[2025-07-04 16:01:55] local.INFO: App\Models\Discount Object
(
    [timestamps] => 
    [guarded:protected] => Array
        (
            [0] => id
        )

    [appends:protected] => Array
        (
            [0] => code_length
        )

    [connection:protected] => mysql
    [table:protected] => discounts
    [primaryKey:protected] => id
    [keyType:protected] => int
    [incrementing] => 1
    [with:protected] => Array
        (
        )

    [withCount:protected] => Array
        (
        )

    [perPage:protected] => 15
    [exists] => 1
    [wasRecentlyCreated] => 
    [attributes:protected] => Array
        (
            [id] => 29174
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 31-5
            [discount_type] => percentage
            [source] => all
            [code] => p867t75c
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1764615660
            [created_at] => 1748714574
        )

    [original:protected] => Array
        (
            [id] => 29174
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 31-5
            [discount_type] => percentage
            [source] => all
            [code] => p867t75c
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1764615660
            [created_at] => 1748714574
        )

    [changes:protected] => Array
        (
        )

    [casts:protected] => Array
        (
        )

    [classCastCache:protected] => Array
        (
        )

    [dates:protected] => Array
        (
        )

    [dateFormat:protected] => 
    [dispatchesEvents:protected] => Array
        (
        )

    [observables:protected] => Array
        (
        )

    [relations:protected] => Array
        (
        )

    [touches:protected] => Array
        (
        )

    [hidden:protected] => Array
        (
        )

    [visible:protected] => Array
        (
        )

    [fillable:protected] => Array
        (
        )

)
  
[2025-07-04 16:02:38] local.INFO: start validateCoupon web function  
[2025-07-04 16:02:38] local.INFO: Request is: Array
(
    [coupon] => 5c4fttvt
    [webinar_id] => 303
)
  
[2025-07-04 16:02:38] local.INFO: Coupon model: App\Models\Discount Object
(
    [timestamps] => 
    [guarded:protected] => Array
        (
            [0] => id
        )

    [appends:protected] => Array
        (
            [0] => code_length
        )

    [connection:protected] => mysql
    [table:protected] => discounts
    [primaryKey:protected] => id
    [keyType:protected] => int
    [incrementing] => 1
    [with:protected] => Array
        (
        )

    [withCount:protected] => Array
        (
        )

    [perPage:protected] => 15
    [exists] => 1
    [wasRecentlyCreated] => 
    [attributes:protected] => Array
        (
            [id] => 29173
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 31-5
            [discount_type] => percentage
            [source] => all
            [code] => 5c4fttvt
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1764615660
            [created_at] => 1748714574
        )

    [original:protected] => Array
        (
            [id] => 29173
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 31-5
            [discount_type] => percentage
            [source] => all
            [code] => 5c4fttvt
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1764615660
            [created_at] => 1748714574
        )

    [changes:protected] => Array
        (
        )

    [casts:protected] => Array
        (
        )

    [classCastCache:protected] => Array
        (
        )

    [dates:protected] => Array
        (
        )

    [dateFormat:protected] => 
    [dispatchesEvents:protected] => Array
        (
        )

    [observables:protected] => Array
        (
        )

    [relations:protected] => Array
        (
        )

    [touches:protected] => Array
        (
        )

    [hidden:protected] => Array
        (
        )

    [visible:protected] => Array
        (
        )

    [fillable:protected] => Array
        (
        )

)
  
[2025-07-04 16:02:38] local.INFO: start checkValidDiscount function  
[2025-07-04 16:02:38] local.INFO: App\Models\Discount Object
(
    [timestamps] => 
    [guarded:protected] => Array
        (
            [0] => id
        )

    [appends:protected] => Array
        (
            [0] => code_length
        )

    [connection:protected] => mysql
    [table:protected] => discounts
    [primaryKey:protected] => id
    [keyType:protected] => int
    [incrementing] => 1
    [with:protected] => Array
        (
        )

    [withCount:protected] => Array
        (
        )

    [perPage:protected] => 15
    [exists] => 1
    [wasRecentlyCreated] => 
    [attributes:protected] => Array
        (
            [id] => 29173
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 31-5
            [discount_type] => percentage
            [source] => all
            [code] => 5c4fttvt
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1764615660
            [created_at] => 1748714574
        )

    [original:protected] => Array
        (
            [id] => 29173
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 31-5
            [discount_type] => percentage
            [source] => all
            [code] => 5c4fttvt
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1764615660
            [created_at] => 1748714574
        )

    [changes:protected] => Array
        (
        )

    [casts:protected] => Array
        (
        )

    [classCastCache:protected] => Array
        (
        )

    [dates:protected] => Array
        (
        )

    [dateFormat:protected] => 
    [dispatchesEvents:protected] => Array
        (
        )

    [observables:protected] => Array
        (
        )

    [relations:protected] => Array
        (
        )

    [touches:protected] => Array
        (
        )

    [hidden:protected] => Array
        (
        )

    [visible:protected] => Array
        (
        )

    [fillable:protected] => Array
        (
        )

)
  
[2025-07-04 16:03:09] local.INFO: start validateCoupon web function  
[2025-07-04 16:03:09] local.INFO: Request is: Array
(
    [coupon] => uzkzh348
    [webinar_id] => 304
)
  
[2025-07-04 16:03:09] local.INFO: Coupon model: App\Models\Discount Object
(
    [timestamps] => 
    [guarded:protected] => Array
        (
            [0] => id
        )

    [appends:protected] => Array
        (
            [0] => code_length
        )

    [connection:protected] => mysql
    [table:protected] => discounts
    [primaryKey:protected] => id
    [keyType:protected] => int
    [incrementing] => 1
    [with:protected] => Array
        (
        )

    [withCount:protected] => Array
        (
        )

    [perPage:protected] => 15
    [exists] => 1
    [wasRecentlyCreated] => 
    [attributes:protected] => Array
        (
            [id] => 29175
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 31-5
            [discount_type] => percentage
            [source] => all
            [code] => uzkzh348
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1764615660
            [created_at] => 1748714574
        )

    [original:protected] => Array
        (
            [id] => 29175
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 31-5
            [discount_type] => percentage
            [source] => all
            [code] => uzkzh348
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1764615660
            [created_at] => 1748714574
        )

    [changes:protected] => Array
        (
        )

    [casts:protected] => Array
        (
        )

    [classCastCache:protected] => Array
        (
        )

    [dates:protected] => Array
        (
        )

    [dateFormat:protected] => 
    [dispatchesEvents:protected] => Array
        (
        )

    [observables:protected] => Array
        (
        )

    [relations:protected] => Array
        (
        )

    [touches:protected] => Array
        (
        )

    [hidden:protected] => Array
        (
        )

    [visible:protected] => Array
        (
        )

    [fillable:protected] => Array
        (
        )

)
  
[2025-07-04 16:03:09] local.INFO: start checkValidDiscount function  
[2025-07-04 16:03:09] local.INFO: App\Models\Discount Object
(
    [timestamps] => 
    [guarded:protected] => Array
        (
            [0] => id
        )

    [appends:protected] => Array
        (
            [0] => code_length
        )

    [connection:protected] => mysql
    [table:protected] => discounts
    [primaryKey:protected] => id
    [keyType:protected] => int
    [incrementing] => 1
    [with:protected] => Array
        (
        )

    [withCount:protected] => Array
        (
        )

    [perPage:protected] => 15
    [exists] => 1
    [wasRecentlyCreated] => 
    [attributes:protected] => Array
        (
            [id] => 29175
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 31-5
            [discount_type] => percentage
            [source] => all
            [code] => uzkzh348
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1764615660
            [created_at] => 1748714574
        )

    [original:protected] => Array
        (
            [id] => 29175
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 31-5
            [discount_type] => percentage
            [source] => all
            [code] => uzkzh348
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1764615660
            [created_at] => 1748714574
        )

    [changes:protected] => Array
        (
        )

    [casts:protected] => Array
        (
        )

    [classCastCache:protected] => Array
        (
        )

    [dates:protected] => Array
        (
        )

    [dateFormat:protected] => 
    [dispatchesEvents:protected] => Array
        (
        )

    [observables:protected] => Array
        (
        )

    [relations:protected] => Array
        (
        )

    [touches:protected] => Array
        (
        )

    [hidden:protected] => Array
        (
        )

    [visible:protected] => Array
        (
        )

    [fillable:protected] => Array
        (
        )

)
  
[2025-07-04 16:03:40] local.INFO: start validateCoupon web function  
[2025-07-04 16:03:40] local.INFO: Request is: Array
(
    [coupon] => bvrhz4aa
    [webinar_id] => 307
)
  
[2025-07-04 16:03:40] local.INFO: Coupon model: App\Models\Discount Object
(
    [timestamps] => 
    [guarded:protected] => Array
        (
            [0] => id
        )

    [appends:protected] => Array
        (
            [0] => code_length
        )

    [connection:protected] => mysql
    [table:protected] => discounts
    [primaryKey:protected] => id
    [keyType:protected] => int
    [incrementing] => 1
    [with:protected] => Array
        (
        )

    [withCount:protected] => Array
        (
        )

    [perPage:protected] => 15
    [exists] => 1
    [wasRecentlyCreated] => 
    [attributes:protected] => Array
        (
            [id] => 29176
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 31-5
            [discount_type] => percentage
            [source] => all
            [code] => bvrhz4aa
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1764615660
            [created_at] => 1748714574
        )

    [original:protected] => Array
        (
            [id] => 29176
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 31-5
            [discount_type] => percentage
            [source] => all
            [code] => bvrhz4aa
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1764615660
            [created_at] => 1748714574
        )

    [changes:protected] => Array
        (
        )

    [casts:protected] => Array
        (
        )

    [classCastCache:protected] => Array
        (
        )

    [dates:protected] => Array
        (
        )

    [dateFormat:protected] => 
    [dispatchesEvents:protected] => Array
        (
        )

    [observables:protected] => Array
        (
        )

    [relations:protected] => Array
        (
        )

    [touches:protected] => Array
        (
        )

    [hidden:protected] => Array
        (
        )

    [visible:protected] => Array
        (
        )

    [fillable:protected] => Array
        (
        )

)
  
[2025-07-04 16:03:40] local.INFO: start checkValidDiscount function  
[2025-07-04 16:03:40] local.INFO: App\Models\Discount Object
(
    [timestamps] => 
    [guarded:protected] => Array
        (
            [0] => id
        )

    [appends:protected] => Array
        (
            [0] => code_length
        )

    [connection:protected] => mysql
    [table:protected] => discounts
    [primaryKey:protected] => id
    [keyType:protected] => int
    [incrementing] => 1
    [with:protected] => Array
        (
        )

    [withCount:protected] => Array
        (
        )

    [perPage:protected] => 15
    [exists] => 1
    [wasRecentlyCreated] => 
    [attributes:protected] => Array
        (
            [id] => 29176
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 31-5
            [discount_type] => percentage
            [source] => all
            [code] => bvrhz4aa
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1764615660
            [created_at] => 1748714574
        )

    [original:protected] => Array
        (
            [id] => 29176
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => 31-5
            [discount_type] => percentage
            [source] => all
            [code] => bvrhz4aa
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1764615660
            [created_at] => 1748714574
        )

    [changes:protected] => Array
        (
        )

    [casts:protected] => Array
        (
        )

    [classCastCache:protected] => Array
        (
        )

    [dates:protected] => Array
        (
        )

    [dateFormat:protected] => 
    [dispatchesEvents:protected] => Array
        (
        )

    [observables:protected] => Array
        (
        )

    [relations:protected] => Array
        (
        )

    [touches:protected] => Array
        (
        )

    [hidden:protected] => Array
        (
        )

    [visible:protected] => Array
        (
        )

    [fillable:protected] => Array
        (
        )

)
  
[2025-07-04 16:38:54] local.INFO: start validateCoupon web function  
[2025-07-04 16:38:54] local.INFO: Request is: Array
(
    [coupon] => 4en3n44x
    [webinar_id] => 291
)
  
[2025-07-04 16:38:54] local.INFO: Coupon model: App\Models\Discount Object
(
    [timestamps] => 
    [guarded:protected] => Array
        (
            [0] => id
        )

    [appends:protected] => Array
        (
            [0] => code_length
        )

    [connection:protected] => mysql
    [table:protected] => discounts
    [primaryKey:protected] => id
    [keyType:protected] => int
    [incrementing] => 1
    [with:protected] => Array
        (
        )

    [withCount:protected] => Array
        (
        )

    [perPage:protected] => 15
    [exists] => 1
    [wasRecentlyCreated] => 
    [attributes:protected] => Array
        (
            [id] => 23996
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => Revesion 1
            [discount_type] => percentage
            [source] => all
            [code] => 4en3n44x
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1756806540
            [created_at] => 1740912633
        )

    [original:protected] => Array
        (
            [id] => 23996
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => Revesion 1
            [discount_type] => percentage
            [source] => all
            [code] => 4en3n44x
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1756806540
            [created_at] => 1740912633
        )

    [changes:protected] => Array
        (
        )

    [casts:protected] => Array
        (
        )

    [classCastCache:protected] => Array
        (
        )

    [dates:protected] => Array
        (
        )

    [dateFormat:protected] => 
    [dispatchesEvents:protected] => Array
        (
        )

    [observables:protected] => Array
        (
        )

    [relations:protected] => Array
        (
        )

    [touches:protected] => Array
        (
        )

    [hidden:protected] => Array
        (
        )

    [visible:protected] => Array
        (
        )

    [fillable:protected] => Array
        (
        )

)
  
[2025-07-04 16:38:54] local.INFO: start checkValidDiscount function  
[2025-07-04 16:38:54] local.INFO: App\Models\Discount Object
(
    [timestamps] => 
    [guarded:protected] => Array
        (
            [0] => id
        )

    [appends:protected] => Array
        (
            [0] => code_length
        )

    [connection:protected] => mysql
    [table:protected] => discounts
    [primaryKey:protected] => id
    [keyType:protected] => int
    [incrementing] => 1
    [with:protected] => Array
        (
        )

    [withCount:protected] => Array
        (
        )

    [perPage:protected] => 15
    [exists] => 1
    [wasRecentlyCreated] => 
    [attributes:protected] => Array
        (
            [id] => 23996
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => Revesion 1
            [discount_type] => percentage
            [source] => all
            [code] => 4en3n44x
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1756806540
            [created_at] => 1740912633
        )

    [original:protected] => Array
        (
            [id] => 23996
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => Revesion 1
            [discount_type] => percentage
            [source] => all
            [code] => 4en3n44x
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1756806540
            [created_at] => 1740912633
        )

    [changes:protected] => Array
        (
        )

    [casts:protected] => Array
        (
        )

    [classCastCache:protected] => Array
        (
        )

    [dates:protected] => Array
        (
        )

    [dateFormat:protected] => 
    [dispatchesEvents:protected] => Array
        (
        )

    [observables:protected] => Array
        (
        )

    [relations:protected] => Array
        (
        )

    [touches:protected] => Array
        (
        )

    [hidden:protected] => Array
        (
        )

    [visible:protected] => Array
        (
        )

    [fillable:protected] => Array
        (
        )

)
  
[2025-07-04 17:22:23] local.INFO: start validateCoupon api function  
[2025-07-04 17:22:23] local.INFO: Request is: Array
(
    [coupon] => s26u28nr
    [content-type] => application/json
)
  
[2025-07-04 17:22:23] local.INFO: Coupon model: App\Models\Discount Object
(
    [timestamps] => 
    [guarded:protected] => Array
        (
            [0] => id
        )

    [appends:protected] => Array
        (
            [0] => code_length
        )

    [connection:protected] => mysql
    [table:protected] => discounts
    [primaryKey:protected] => id
    [keyType:protected] => int
    [incrementing] => 1
    [with:protected] => Array
        (
        )

    [withCount:protected] => Array
        (
        )

    [perPage:protected] => 15
    [exists] => 1
    [wasRecentlyCreated] => 
    [attributes:protected] => Array
        (
            [id] => 23904
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => Revesion 1
            [discount_type] => percentage
            [source] => all
            [code] => s26u28nr
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1756806540
            [created_at] => 1740912633
        )

    [original:protected] => Array
        (
            [id] => 23904
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => Revesion 1
            [discount_type] => percentage
            [source] => all
            [code] => s26u28nr
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1756806540
            [created_at] => 1740912633
        )

    [changes:protected] => Array
        (
        )

    [casts:protected] => Array
        (
        )

    [classCastCache:protected] => Array
        (
        )

    [dates:protected] => Array
        (
        )

    [dateFormat:protected] => 
    [dispatchesEvents:protected] => Array
        (
        )

    [observables:protected] => Array
        (
        )

    [relations:protected] => Array
        (
        )

    [touches:protected] => Array
        (
        )

    [hidden:protected] => Array
        (
        )

    [visible:protected] => Array
        (
        )

    [fillable:protected] => Array
        (
        )

)
  
[2025-07-04 17:22:23] local.INFO: start checkValidDiscount function  
[2025-07-04 17:22:23] local.INFO: App\Models\Discount Object
(
    [timestamps] => 
    [guarded:protected] => Array
        (
            [0] => id
        )

    [appends:protected] => Array
        (
            [0] => code_length
        )

    [connection:protected] => mysql
    [table:protected] => discounts
    [primaryKey:protected] => id
    [keyType:protected] => int
    [incrementing] => 1
    [with:protected] => Array
        (
        )

    [withCount:protected] => Array
        (
        )

    [perPage:protected] => 15
    [exists] => 1
    [wasRecentlyCreated] => 
    [attributes:protected] => Array
        (
            [id] => 23904
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => Revesion 1
            [discount_type] => percentage
            [source] => all
            [code] => s26u28nr
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1756806540
            [created_at] => 1740912633
        )

    [original:protected] => Array
        (
            [id] => 23904
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => Revesion 1
            [discount_type] => percentage
            [source] => all
            [code] => s26u28nr
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1756806540
            [created_at] => 1740912633
        )

    [changes:protected] => Array
        (
        )

    [casts:protected] => Array
        (
        )

    [classCastCache:protected] => Array
        (
        )

    [dates:protected] => Array
        (
        )

    [dateFormat:protected] => 
    [dispatchesEvents:protected] => Array
        (
        )

    [observables:protected] => Array
        (
        )

    [relations:protected] => Array
        (
        )

    [touches:protected] => Array
        (
        )

    [hidden:protected] => Array
        (
        )

    [visible:protected] => Array
        (
        )

    [fillable:protected] => Array
        (
        )

)
  
[2025-07-04 17:22:23] local.INFO: start checkValidDiscount function  
[2025-07-04 17:22:23] local.INFO: App\Models\Discount Object
(
    [timestamps] => 
    [guarded:protected] => Array
        (
            [0] => id
        )

    [appends:protected] => Array
        (
            [0] => code_length
        )

    [connection:protected] => mysql
    [table:protected] => discounts
    [primaryKey:protected] => id
    [keyType:protected] => int
    [incrementing] => 1
    [with:protected] => Array
        (
        )

    [withCount:protected] => Array
        (
        )

    [perPage:protected] => 15
    [exists] => 1
    [wasRecentlyCreated] => 
    [attributes:protected] => Array
        (
            [id] => 23904
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => Revesion 1
            [discount_type] => percentage
            [source] => all
            [code] => s26u28nr
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1756806540
            [created_at] => 1740912633
        )

    [original:protected] => Array
        (
            [id] => 23904
            [creator_id] => 13015
            [added_by] => admin
            [instructor_id] => 
            [city_id] => 
            [organ_id] => 
            [title] => Revesion 1
            [discount_type] => percentage
            [source] => all
            [code] => s26u28nr
            [percent] => 100
            [amount] => 
            [max_amount] => 
            [minimum_order] => 
            [count] => 5
            [user_type] => 
            [for_first_purchase] => 0
            [status] => active
            [expired_at] => 1756806540
            [created_at] => 1740912633
        )

    [changes:protected] => Array
        (
        )

    [casts:protected] => Array
        (
        )

    [classCastCache:protected] => Array
        (
        )

    [dates:protected] => Array
        (
        )

    [dateFormat:protected] => 
    [dispatchesEvents:protected] => Array
        (
        )

    [observables:protected] => Array
        (
        )

    [relations:protected] => Array
        (
        )

    [touches:protected] => Array
        (
        )

    [hidden:protected] => Array
        (
        )

    [visible:protected] => Array
        (
        )

    [fillable:protected] => Array
        (
        )

)
  
