Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

URL::signedRoute Starts with api. after changing the queue driver to google cloudtask #150

Discussion options

I'm using google app engine for the project. recently changed the queue driver to google cloud task queue. After changing the queue driver, The signed route on my email return the domain starting from api.Domain.com. Which was earlier domain.com

The following code used in the email.

 public function toMail($notifiable)
 {
 $url = URL::signedRoute('activate', [
 'email' => $notifiable->email,
 ]);
 return (new MailMessage)
 ->subject('Activate Your Account')
 ->markdown('mails.auth.activate', [
 'url' => $url,
 'email' => $notifiable->email,
 ]);
 
 }
You must be logged in to vote

Not sure what causes the issue. but I've fixed the issue by adding URL::forceRootUrl(config('app.url')); in the Service Provider.

Thank you.

Replies: 1 comment 2 replies

Comment options

I tried to reproduce this, but I can't. Do you have a reproducible example?

You must be logged in to vote
2 replies
Comment options

The package doesn't do anything with signed routes, so I'm not entirely sure this package is the culprit.

Comment options

Not sure what causes the issue. but I've fixed the issue by adding URL::forceRootUrl(config('app.url')); in the Service Provider.

Thank you.

Answer selected by dumithsalinda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Converted from issue

This discussion was converted from issue #149 on July 25, 2024 20:03.

AltStyle によって変換されたページ (->オリジナル) /