thedevdojo / voyager

Voyager - The Missing Laravel Admin
https://voyager.devdojo.com
MIT License
11.78k stars 2.67k forks source link

Image not displaying on hasMany Relationship #4995

Closed AbdulRafay closed 4 years ago

AbdulRafay commented 4 years ago

Version information

Steps To Reproduce

Steps to reproduce the behavior:

  1. create table tabs fields id, description
  2. Create table attachments, fields => id, attachment_file (BLOB), tab_id(FK)
  3. add a record in tabs table
  4. add a record in attachments table, provide a value for foreign key as well.
  5. Goto tabs bread, attachment file will be displayed as string instead of image, please refer to screenshot below

Expected behavior

attachment images should be displayed in tabs list view

Screenshots

If applicable, add screenshots to help explain your problem. image

Additional context

If you want to have a look, test site is hosted at http://35.209.64.182/admin

username: admin@admin.com password: admin

if any additional information is required please let me know.

BR

emptynick commented 4 years ago

Not a bug. The relationship does not know that you want this field to be an image. You'll have to override the formfield view

github-actions[bot] commented 3 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.