app/Http/Controllers/MessageController.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)
    {
         $msz=Message::find($id);
         $msz->sms_type = $request['sms_type'];
         $msz->message = $request['message'];
         $msz->save();
       return back()->with('success','Message edit successfully');
    }
public function update ( Request $ request , $ id ) { $ msz = Message :: find ( $ id ) ; $ msz -> sms_type = $ request [ 'sms_type' ] ; $ msz -> message = $ request [ 'message' ] ; $ msz -> save ( ) ; return back ( ) -> with ( 'success' , 'Message edit successfully' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .