Morbakos
187
19
Laravel

Function update doens't work

Posted 4 days 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.

Reply to

Use Markdown with GitHub-flavored code blocks.