Skip to content

Relative links #91

Answered by ades4827
loranger asked this question in Q&A
May 4, 2022 · 4 comments · 1 reply
Discussion options

You must be logged in to vote

My solution for this problem is not excellent but I have chosen to solve it in this way. It would be a change to better identify which console command was executed but I don't know how to do it.

i added this script in the class AppServiceProvider which uses a new env only for export. In my specific case, I also forced the use of https

public function boot() { if ($this->app->runningInConsole()) { \URL::forceRootUrl(env('APP_URL_EXPORTER')); \URL::forceScheme('https'); } }

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@loranger
Comment options

Answer selected by loranger
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants