Yasser Moussa
Yasser Moussa

Reputation: 2329

Blade is outputting URL encoded characters instead of evaluating inside curly braces

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

Upvotes: 1

Views: 871

Answers (1)

Alexey Mezenin
Alexey Mezenin

Reputation: 163788

%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.

Upvotes: 6

Related Questions