Morbakos
298
19
Laravel

Function update doens't work

Posted 1 month ago by Morbakos

Hi there,

I have an issue, because when I try to update data with a resource controller, the data still unchanged. Here's my function:

public function update(MissionUpdateRequest $request, $id)
    {
        $this->missionRepository->update($id, $request->all());
        
        return redirect('missions.index')->withOk("La mission " . $request->input('nom_mission) . " a été modifié.");
    }

Somebody help me please ?

Please sign in or create an account to participate in this conversation.