ImageEntry relationship get url

hi, i've this:

Fieldset::make('Foto')
    ->relationship('photos')
    ->schema([ 
                        Infolists\Components\ImageEntry::make('name')
                        ->url(fn ($record) => Storage::url($record->name), shouldOpenInNewTab: true)
->label('')->height(90)->width(90)->columnSpanFull(),
])->columns(5),


but this ->url(fn ($record) => Storage::url($record->name), shouldOpenInNewTab: true) doesn't work....how can i retrieve the attribute name of the relationship photos?

thanks
Was this page helpful?