$file->url()

Returns the absolute URL for a file

  • return (string)

Example

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