I'm trying to get url link form database in laravel5 like that.
<p class="title">{{$promotion->link}}</p>
<a href="{{$promotion->link}}" target="_blank"
class="label label-info pull-right">View Link</a>
$promotion->link = "www.google.com";
Result >>
1.www.google.com
2.<a href="localhost/www.google.com".....
I don't know why the link in contain base url "localhost" . I can't redirect the link with url in my website. Please help and show me the right way.
Thanks and respect to all geek!!!
<a href="/{{$promotion->link}}" target="_blank" class="label label-info pull-right">View Link</a>