Open Omar-Abdelrady opened 3 years ago
I just tagged a new release with an additional check in the wishlistResponse method. https://github.com/lamalamaNL/laravel-wishlist/releases/tag/0.2.1
To be sure, can you share your full ErrorExpception via the Share button?
What is your opinion ?
https://flareapp.io/share/KPgneWem#F52 how to fix this, this same issue
Hello, the lib still has an issue at this level, a $items->isEmpty()
is missing in the if
condition of the method wishlistResponse
Hey guys,
You can fix that issue with this code (in the blade):
<?php $continue = 0; try { $has = Auth::user()->wishlists("default")["default"][0]->contains($product->id); $continue = 1; } catch (\Throwable $th) { $continue = 0; } ?>
Then you can continue the blade code with:
@if ($continue == 1) YOUR_CODE @endif
I hope I helped.