Passing user id into modal component #286
Chukwusombiri
started this conversation in
General
Replies: 1 comment 1 reply
-
Set the following public property and allow it to be an int or string depending on your ID type
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Please, is there one who can better explain the reason for getting this error:
Cannot assign string to property App\Http\Livewire\Admin\UserProfile::$user of type App\Models\User
I have a Livewire component for showing my app users and along that line I have a button that opens users details modal. I've passed the user->id into the modal component class. But I cannot see any user when the modal opens except for an error.Beta Was this translation helpful? Give feedback.
All reactions