Skip to content

Feature request: Option to hide filename from Detail view #162

@miagg

Description

@miagg

First of all this is a great package!

I do wish there was an option to hide the filename from the detail view if displayAsImage() is set.

Right now the only way to solve this is by hiding the field on detail and adding a compute field like this:

  FilemanagerField::make('Avatar', 'avatar_url')
      ->folder('avatars')
      ->filterBy('images')
      ->displayAsImage()
      ->hidefromDetail(),

  Text::make('Avatar', function () {
      return "<img src='$this->avatar' alt='$this->fullName' class='max-w-xs'>";
  })->asHtml()
      ->canSee(function () {
          return $this->avatar_url;
      })
      ->onlyOnDetail(),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions