Error 405 Method Not Allowed Php
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the
405 Method Not Allowed Php Iis
workings and policies of this site About Us Learn more about error 405 method not allowed web service Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions
Http Error 405 Method Not Allowed
Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. http error 405 method not allowed sap content server Join them; it only takes a minute: Sign up Error 405 (Method Not Allowed) Laravel 5 up vote 6 down vote favorite Im trying to do a POST request with jQuery but im getting a error 405 (Method Not Allowed), Im working with Laravel 5 THis is my code: jQuery HTML {!! Form::open(['route' => ['companiesDelete', ':USER_ID'], 'method' =>'DELETE', 'id' => 'formDelete']) !!} {!!Form::close() !!} Controller public function delete($id, \Request $request){ return $id; } The Jquery error is http://localhost/laravel5.1/public/empresas/eliminar/5 405 (Method Not Allowed). The url value is http://localhost/laravel5.1/public/empresas/eliminar/5 and the data value is _method=DELETE&_token=pCETpf1jDT1rY615o62W0UK7hs3UnTNm1t0vmIRZ. If i change to $.get request it works fine, but i want to do a post request. Anyone could help me? Thanks. EDIT!! Route Route::post('empresas/eliminar/{id}', ['as' => 'companiesDelete', 'uses' => 'CompaniesController@delete']); php jquery laravel laravel-5 share|improve this question edited Jul 25 '15 at 4:20 asked Jul 25 '15 at 4:08 German Ortiz 54116 1 check in your route file you may given a get method in route try it with post it will work....... –Sagar Naliyapara Jul 25 '15 at 4:17 add a comment| 2 Answers 2 active oldest votes up vote 7 down vote accepted The methodNotAllowed exception indicates that
'action' in html? I'm learning forms in the html course. There is an "action" command, that when i put in a destination for the action, i get a 405 Not Allowed message. here is the code:
Error Code 405 Method Not Allowed