You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in case i have model id how i can get hashItem related to this model to destory it
publicfunctiondestroy(Template$template,Cart$cart): JsonResponse
{
if ($template->hasInCart('soni-designer')) {
// here i want to remove item from cart i dont have any hash but i have associative model $template
}
return$this->responseJson([
'success' => true,
'cart' => $cart->name('soni-designer')->getDetails(withActions: false, withTaxes: false),
]);
}
The text was updated successfully, but these errors were encountered:
in case i have model id how i can get hashItem related to this model to destory it
The text was updated successfully, but these errors were encountered: