Error - id input not resolving to model #103
-
Using button with either single or double quotes, the resolution step does not change the id value into model instance.
Gives "Cannot assign int to property App\Http\Livewire\EditDriver::$driver of type App\Models\Driver (View: /home/vagrant/code/resources/views/vendor/livewire-ui-modal/modal.blade.php)" Fails on vendor/livewire/livewire/src/LifecycleManager.php:109. How does the id get resolved to an actual model? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Note on issue #60 say " change your property from: Seems like the Livewire hydration process does a straight assignment and later in the process does it get typed to the model. Not clear if the behavior is a Livewire issue or a modal-ui issue. |
Beta Was this translation helpful? Give feedback.
Note on issue #60 say " change your property from:
public User $user; to public int|User $user; "
Seems like the Livewire hydration process does a straight assignment and later in the process does it get typed to the model.
Not clear if the behavior is a Livewire issue or a modal-ui issue.