How to set URL without http of Other site in Laravel?

Share Me
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

Today now in this blog I will show you how to set url without http of other site in laravel application. If you are working on laravel framework and you want to give to any other site URL. Then we can do this easily give url by using a tag like href=”https://www.facebook.com” but if we are work on laravel then it can’t redirect on given URL because laravel always it redirect on current site, but we need to solution of this problem. So here we know how to set URL without http or https of Other site in Laravel Website?, I will describe as under.

For example if we want to give facebook url then we can give this way :

<a href="//facebook.com" target="_blank">FB</a>

Read Also :How to Get Client IP Address using Javascript?

Thanks for read this, I hope it will you. You can also follow us onĀ Facebook.

About code chef

My name is Shahriar sagor. I'm a developer. I live in Bangladesh and I love to write tutorials and tips that will help to other Developer's. I am a big fan of PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS and Bootstrap from the early stage.

View all posts by code chef →