简体   繁体   中英

Using URL::to base URL in a Command in Laravel

I'm using a custom artisan Command that send an email, and in the template of that email, I need to use URL::to() helper method. The problem is, when this URL is generated by artisan command, the baseurl is fulfilled with the IP of server instead of domain.

好的,我明白了...只需更改文件'app / config / app.php'中的'url'键,就像Antonio Carlos RIbeiro所说的...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM