app/Http/Controllers/UserThanksAdminController.php
/**
     * Update user thank's data
     * 
     */
Update user thank's data
Update user thank ' s data
public function update(UserThanksRequest $request, $id)
    {
        $userThanks = UserThanks::find($id);
        $userThanks->receiptName = $request->receiptName;
        $userThanks->receiptEmail = $request->receiptEmail;
        $userThanks->content = $request->content;
        $userThanks->save();
        return response()->json($userThanks);
    }
public function update ( UserThanksRequest $ request , $ id ) { $ userThanks = UserThanks :: find ( $ id ) ; $ userThanks -> receiptName = $ request -> receiptName ; $ userThanks -> receiptEmail = $ request -> receiptEmail ; $ userThanks -> content = $ request -> content ; $ userThanks -> save ( ) ; return response ( ) -> json ( $ userThanks ) ; }
Update user thank's data
Update user thank ' s data
/*$user = new UserAdminController();

        Mail::to($user->show($request->user_id)->email)->send(new UserThanksMail($user, $userThanks));*/