app/Http/Controllers/EnterpriseThanksAdminController.php
/**
     * Update enterprise thank's data
     * 
     */
Update enterprise thank's data
Update enterprise thank ' s data
public function update(EnterpriseThanksRequest $request, $id)
    {
        $enterpriseThanks = EnterpriseThanks::find($id);
        $enterpriseThanks->enterprise_id = $request->enterprise_id;
        $enterpriseThanks->content = $request->content;
        $enterpriseThanks->save();
        return response()->json($enterpriseThanks);
    }
public function update ( EnterpriseThanksRequest $ request , $ id ) { $ enterpriseThanks = EnterpriseThanks :: find ( $ id ) ; $ enterpriseThanks -> enterprise_id = $ request -> enterprise_id ; $ enterpriseThanks -> content = $ request -> content ; $ enterpriseThanks -> save ( ) ; return response ( ) -> json ( $ enterpriseThanks ) ; }
Update enterprise thank's data
Update enterprise thank ' s data
/*$enterprise = new EnterpriseAdminController();

        Mail::to($enterprise->show($request->enterprise_id)->email)->send(new EnterpriseThanksMail($user, $enterpriseThanks));*/