app/Http/Controllers/ContactController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\Models\Contact  $contact
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update($id, Request $request)
    {
        $contacts = Contact::find($id);
        $contacts->update($request->all());
        return response()->json('The contact successfully updated');
    }
public function update ( $ id , Request $ request ) { $ contacts = Contact :: find ( $ id ) ; $ contacts -> update ( $ request -> all ( ) ) ; return response ( ) -> json ( 'The contact successfully updated' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .
//