laravel-ecommerce-example
laravel-ecommerce-example copied to clipboard
Trying to access array offset on value of type null
Trying to access array offset on value of type null !
this error comes out when i want to add knew cart item
I have the same issue
I have the same issue
have you been able to fix yours?
$couponName = session()->get('coupon')['name'] ?? null;
Hi, yes
Try this $couponName = isset(session()->get('coupon')['name']);
El jue., 24 set. 2020 5:39 a. m., Martin Halaj [email protected] escribió:
$couponName = session()->get('coupon')['name'] ?? null;
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/drehimself/laravel-ecommerce-example/issues/99#issuecomment-698263905, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJONGIBMSX4TEN2N7PTWQCTSHMOUXANCNFSM4RKVCXVA .