Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mail from laravel has link to the api #31

Closed
koekaverna opened this issue Oct 2, 2018 · 2 comments
Closed

Mail from laravel has link to the api #31

koekaverna opened this issue Oct 2, 2018 · 2 comments

Comments

@koekaverna
Copy link

In header of the letters (recover password, etc) in header of the letter

<td class="header" style="font-family: Avenir, Helvetica, sans-serif; box-sizing: border-box; padding: 25px 0; text-align: center;">
        <a href="http://api.my-site.local" style="font-family: Avenir, Helvetica, sans-serif; box-sizing: border-box; color: #bbbfc3; font-size: 19px; font-weight: bold; text-decoration: none; text-shadow: 0 1px 0 white;">
            My App Name
        </a>
    </td>
</tr>

In .env:

APP_URL=http://api.my-site.local
CLIENT_URL=http://my-site.local

The link could be to the env.CLIENT_URL not to env.APP_URL

@M-Abdullahi
Copy link

I was facing the same issue in password reset emails.
I think the best approach is to create your own mailable class and customize the view.

@cretueusebiu
Copy link
Owner

You can run php artisan vendor:publish --tag=laravel-mail and customize the views to include the actual client url.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants