Open gaberoonie opened 3 years ago
Hi @gaberoonie, you should add the HasWallets
trait to your User
model not in the controller. Once you fix that, correct this part too
$recipient = $request->input('recipient_address_id', []);
$user = $recipient;
Based on the error message, $recipient
has a value of string and you're copying that value to $user
. $user
should be an instance of a model with the HasWallets
trait in order for you to call $user->wallet()
I'm really enjoying the package, but I encounter the following issue.
When i submit the form, I get error ''Call to a member function wallet() on string"
Here is the code for the controller. The error occurs at: $userWallet = $user->wallet(1);
Thanks so much for assistance!