External link not working in laravel blade

Updated 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