$file->url()

Returns the absolute URL for a file

  • return (string)

Example

<?= $page->file('myimage.jpg')->url() ?>