I have this two slice of code in a blade's page:
<td>
<input type="image" src={{ URL::asset('img/edit_icon.png') }}
height="36" alt="Submit" class="btn editCompanyButton"
id="edit_company" data-toggle="modal" data-target="#editCompanyModal" />
</td>
and
<td>
{!! Form::open(['url' => 'admin/users', 'method' => 'delete']) !!}
{{ Form::hidden('user_id', $user->id, array('id' => 'user_id')) }}
{{ Form::submit('Cancella Utente', array('class' => 'btn')) }}
{!! Form::close() !!}
</td>
at the load of the page both works fine, then if i push the edit button the delete button is switched for i don't know what reason to a post method!
<form method="POST" action="http://localhost:8000/admin/users" accept-charset="UTF-8">
<input name="_token" type="hidden" value="iUSNtcrJWBElATJ5k98etNcGlbhukFsVNnMyuAdM">
<input id="user_id" name="user_id" type="hidden" value="3">
<input type="image" src="http://localhost:8000/img/delete_icon.png" height="32" alt="Submit">
instead of this slice, that is correctly rendered at the load of the page:
<form method="POST" action="http://localhost:8000/admin/companies" accept-charset="UTF-8">
<input name="_method" type="hidden" value="DELETE">
<input name="_token" type="hidden" value="iUSNtcrJWBElATJ5k98etNcGlbhukFsVNnMyuAdM">
<input id="company_id" name="company_id" type="hidden" value="2}">
<input type="image" src="http://localhost:8000/img/delete_icon.png" height="32" alt="Submit">
</form>
so why hitting the edit button make the delete button switched to another form structure?