This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

phplee
phplee

HI,

Im running registerSchedule which send out an email with a link to download a file. however the when i use

 $this->document->getPath()

it returns

 http://localhost/storage/app/uploads/public/5ce/a7c/710/5c7c7107392072300646.pdf

instead of

  http://mydomain.com/storage/app/uploads/public/5ce/a7c/710/5c7c7107392072300646.pdf

i know its because the cron when triggered resolves getPath() to local host but is there a way to get the url.

thanks

1-1 of 1

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.