app/Http/Controllers/AdminContactController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(Request $request, $id)
    {
        $input = $request->all();
        $input['done'] = true;
        $input['user_id'] = Auth::user()->id;
        Contact::whereId($id)->first()->update($input);
        return redirect('/admin/contacts');
    }
public function update ( Request $ request , $ id ) { $ input = $ request -> all ( ) ; $ input [ 'done' ] = true ; $ input [ 'user_id' ] = Auth :: user ( ) -> id ; Contact :: whereId ( $ id ) -> first ( ) -> update ( $ input ) ; return redirect ( '/admin/contacts' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .
//