Closed liepumartins closed 2 years ago
Dive\Wishlist\WishCollection::findModel(): Argument #2 ($id) must be of type string, int given, called in /home/vagrant/test/vendor/dive-be/laravel-wishlist/src/WishCollection.php on line 36
Happens when route binding or simply calling:
Dive\Wishlist\Facades\Wishlist::find('09c09144-42fd-47b2-98b9-396687eb23ca')
Likely because the Eloquent model has $casts = ['id'=>'int']; for unrelated reasons.
$casts = ['id'=>'int'];
Closed by #4
Fix released as 1.2.1. Thanks for the PR!
Dive\Wishlist\WishCollection::findModel(): Argument #2 ($id) must be of type string, int given, called in /home/vagrant/test/vendor/dive-be/laravel-wishlist/src/WishCollection.php on line 36
Happens when route binding or simply calling:
Likely because the Eloquent model has
$casts = ['id'=>'int'];
for unrelated reasons.