Answer the question
In order to leave comments, you need to log in
Why axios.put returns status 200 but doesn't update the data?
I am learning laravel + vue.
I send a request from the front to the back:
updateChe(context, credentials) {
axios.put('http://laravel.api/api/tasks/' + credentials.id, credentials)
}
public function update(Request $request, Task $task): TaskResource
{
$this->validateAuthUserTask($task);
$task->update($request->all());
return new TaskResource($task);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question