$file->url()

Returns the absolute URL for a file

  • return (string)

Example

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

Is something missing or incorrect? Edit this page on Github…