My Route API:

```
Route::get('/outline/{key}',"OutlineController@show");
Route::post('/outline',"OutlineController@store");
Route::delete('/outline/{key}',"OutlineController@destroy");
Route::put('/outline/{key}',"OutlineController@update");

```

My Controller Code is:

```
public function update(Request $request ,$key)
{
    $request->validate([
        'title' => 'string|required',
        'content' => 'string|required',
        'pseudo' => 'string',
        'email' => 'email|required'
    ]);

    try {
        if($outline = Outline::where('key',$key)->first()){

            $outline = Outline::where('key',$key)->first();

            $outline->title = $request->title;
            $outline->content = $request->content;
            $outline->pseudo = $request->pseudo;
            $outline->email = $request->email;
            $outline->save()->refresh();

            return response()->json([
                'message' => "Success!",
                'outline' => $outline
            ],200);

        } else {
            return response()->json([
                'message' => "Not found!"
            ],404);
        }
    } catch (\Exception $e){
        report($e);
        return response()->json([
            'message' => "Something went really wrong!"
        ],500);
    }

}

```

This Page to show 404 Not Found:

[![enter image description here](https://i.stack.imgur.com/ECFAT.png)](https://i.stack.imgur.com/ECFAT.png)

I have try last 3 hours but no response. Please Solve this...

I try put and patch method but 404 not found page Show..

Advanced Thank You For Help.....