mercredi 27 juin 2018

Laravel5.6 - route unwanted

i have an issue on my view edit.blade of my EmployeeCOntroller.

Edit.blade.php

 <form method="PUT" action="" aria-label="" enctype="multipart/form-data">

web.php

Route::patch('/employee/{id}', 'EmployeeController@update')->name('employees.update');
Route::get('/employee/{id}', 'EmployeeController@destroy')->name('employees.delete');

EmployeeController

public function update(Request $request, $id)

i dont know why but the request to my destroy() function on my controller !!

Someone have an idee ?

Thanks all !



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire