first(); $sms_template->sms_body = str_replace("\r\n",'',$request->body); $sms_template->template_id = $request->template_id; if ($request->status == 1) { $sms_template->status = 1; } else{ $sms_template->status = 0; } if($sms_template->save()){ flash(translate('SMS Template has been updated successfully'))->success(); return back(); } else { flash(translate('Sorry! Something went wrong.'))->error(); return back(); } } /** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { // } }