ziaakbari
2 months ago
1195
32
General

Sample code containing expression like {{ $title }} cause blank page in Laravel

Posted 2 months ago by ziaakbari

Hi there,

I am using prism code highlighter in Laravel 5.4 in bellow example;

<form action="download/{{$file_name}}" method="GET">
    <button class="btn btn-sm btn-default" type="submit">Download</button>
</form>

In the above code example, I need to pass file_name to my route, when I inclose the variable $file_name with {{ }} the whole page content disappears, I see a blank page.

could anyone help me with this problem, please thanks in advance

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