-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Field MorphTo::make('Causer', 'causer') not displaying anything. #23
Comments
What version of nova are you using? Can you provide some more detailed information? |
In the fields for the ActivityLog resource SO I had to extend the class and using a text field I generated the link to the user object. Not ideal but works as you can see above the next column to the yellow one.
We're still using Nova 3. |
@bolechen Found the answer. Might want to add to the documentation that the Causer requires that the Causer Nova resource has the title defined for it to display on the index and select inputs on the form view. In most cases that would be the User Nova resource.
Or Ref: https://nova.laravel.com/docs/1.0/resources/relationships.html#title-attributes |
In fields for the ActivityLog resource:
MorphTo::make('Causer', 'causer'),
doesn't return a displayable value. It simply shows a dash for all activities. Meanwhile the database has the correct causer type and causer id.Did you need to add anything to the user model to accept the relationship? or to the Nova User resource?
The text was updated successfully, but these errors were encountered: