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

Axios.put error 405 not allowed. #4

Closed
sproutlegal opened this issue Nov 15, 2018 · 3 comments
Closed

Axios.put error 405 not allowed. #4

sproutlegal opened this issue Nov 15, 2018 · 3 comments

Comments

@sproutlegal
Copy link

sproutlegal commented Nov 15, 2018

On the route /api/survey/{id} I am getting a 405 method not allowed for PUT method. This occurs when i press "save survey" button in the editor for an existing survey.

I have tried changing survey-manager.js to use a different method of updating rather than axios.put, however, to now avail.

I have tried putting in the routes individually, instead of Route::resource, but still not luck. I have looked at route:list in laravel and the routes look fine.

Any ideas?

@AidynMakhataev
Copy link
Owner

Сan you please show result of route:list сommand? And also, which Laravel version do you use?

@AidynMakhataev
Copy link
Owner

I’m closing this issue because it has been inactive. This probably means that it is not reproducible or it has been fixed in a newer version. Please reopen if you still encounter this issue.
Thank you!

@DCdeBrabander
Copy link

Damn it, I have the exact same issue. I am running Laravel 5.8 and I'm getting apache 404/405's on routes I defined(! If I go to an undefined route I get a Laravel 404..?).

@sproutlegal what did you do to fix it?

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

3 participants