pingpong-labs / menus

Laravel 5 Menus
https://pingpong-labs.github.io/docs/menus.html
BSD 3-Clause "New" or "Revised" License
68 stars 42 forks source link

Pingpong menus {{ csrf_token() }} issue with laravel 5.1.6 #31

Open amine014 opened 9 years ago

amine014 commented 9 years ago

Hi and thank you for the good work you're doing !

I'm using Pingpong-labs menus with Laravel 5.1.6 and I have an issue.

I have a login form within the menu so I used

$sub->header('

        <form class="login_form" method="POST" action="auth/login">
        <input type="hidden" name="_token" value="{{ csrf_token() }}"> ....

The problem is that {{ csrf_token() }} is not interpreted. I

1/ modified the menus.php to menus.blade.php to interpret {{ }} 2/ I changed menus.php to menus.blade.php in MenusServiceProvider.php

Any help or idea is welcome please. Thank you

garygreen commented 9 years ago

Looks more like you should be using the widget package for this kind of html. It's not really a menu.