Yasser Moussa Yasser Moussa - 3 months ago 21
PHP Question

Route output string

I have a link and i used

route()
method but it doesn't get processed to output the link it output a string

<a href="{{ route('admin.index') }}">Dashboard</a>


The result

http://web.app/%7B%7B%20route('admin.index')%20%7D%7D

Answer

%20%7D%7D means PHP converts {{ }} characters to HTML entities. It seems you don't use .blade.php naming or do something like this. If renaming template won't help, please update your answer with full template contents.