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

create.blade.php not sure, but may be issue... #89

Closed
BinaryBlock opened this issue Aug 17, 2016 · 2 comments
Closed

create.blade.php not sure, but may be issue... #89

BinaryBlock opened this issue Aug 17, 2016 · 2 comments

Comments

@BinaryBlock
Copy link

Hey,

I was getting some exceptions and was debugging a /CRUD create request. I noticed that there are actually two _token POST parameters being sent. Perhaps one of them needs to be removed from the Blade file?

  1. First <input is automatically being generated by the {{ Form::open(...
    https://github.com/Laravel-Backpack/CRUD/blob/master/src/resources/views/create.blade.php#L24
{!! Form::open(array('url' => $crud->route, 'method' => 'post')) !!}
  1. Second <input is explicitly being stated here:
    https://github.com/Laravel-Backpack/CRUD/blob/master/src/resources/views/create.blade.php#L61
<input type="hidden" name="_token" value="{{{ csrf_token() }}}" />

I would suggest removing line: https://github.com/Laravel-Backpack/CRUD/blob/master/src/resources/views/create.blade.php#L61

Hope that helps. If I'm off-base... just say so... just trying to help. 😄

@tabacitu
Copy link
Member

Damn. You're right, of course :-) I'll remove the hidden input, it's no loger necessary.

Cheers!

@tabacitu
Copy link
Member

Done, thanks again. Cheers!

This was referenced Apr 2, 2020
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