nhayder
5 months ago

Can't force laravel to href link should be from root

Posted 5 months ago by nhayder

This should be simple but yet its not getting done, :-0,

i have freaking simple href link and laravel keeps appending the link to http://127.0.0.1:8000 to the beginning of the link.

on my controller the $button->weblink contains http://abc.com but instead to visiting http://abc.com laravel is giving me http://127.0.0.1:8000/http://abc.com.

i tried these but nothing seems to fix the issues ???


<a href="{{url($button->weblink)}}"></a> // returning http://127.0.0.1:8000/http://abc.com

<a href="{{$button->weblink}}"></a> // returning http://127.0.0.1:8000/http://abc.com

<a href="/{{$button->weblink}}"></a> // returning http://127.0.0.1:8000/http://abc.com

how to fix this thing ??? the link should redirects to http://abc.com

any idea ???

Please sign in or create an account to participate in this conversation.