External link not working in laravel blade

Created at 18-Aug-2021 , By samar

External link not working in laravel blade

In this session, we’ll try our hand at solving the "External link not working in laravel blade" puzzle by using the computer language.

You can use http:// protocol to anchor tags which can be a problem in blade files for external links. That is why the external link may not work in your laravel blade view.
  • Add external link with http:// in laravel blade

    <a href="http://{{ $anchorLink }}" target="_blank"> {{ $anchorLink }} </a> 
    

    You have to pass http:// with your anchor link if your URL link of the anchor tag is not in a valid formats like with http://google.com or https://google.com

Back to code snippet queries related laravel

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Buy Me A Coffee

Don't forget to share this article! Help us spread the word by clicking the share button below.

We appreciate your support and are committed to providing you valuable and informative content.

We are thankful for your never ending support.