Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
amine014 opened this issue Jul 11, 2015 · 1 comment
Open

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

amine014 opened this issue Jul 11, 2015 · 1 comment

Comments

@amine014
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants