Replies: 1 comment 5 replies
-
You can also do the following: public string | Media $media;
public function mount(Media $media)
{
$this->media = $media;
} There is a fix for the model binding but I still have to look into it: #296 |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am having issues getting the model binding to work. For example:
Results in an error:
My Media model has a UUID primary key, hence the string error.
I can instead pass in the media_id and then find it inside the mount method, but as I understand it within the docs this should not be needed?
Beta Was this translation helpful? Give feedback.
All reactions