app/Http/Controllers/M_template_detailsController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\M_template_details  $template_detail
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(Request $request, M_template_details $m_template_detail)
    {
         request()->validate([
            'template_id'=>'required',
            'description' => 'required',
        ]);
        $m_template_detail->update($request->all());
        return redirect()->route('m_template_details.index')
                        ->with('success','description updated successfully');
    }
public function update ( Request $ request , M_template_details $ m_template_detail ) { request ( ) -> validate ( [ 'template_id' => 'required' , 'description' => 'required' , ] ) ; $ m_template_detail -> update ( $ request -> all ( ) ) ; return redirect ( ) -> route ( 'm_template_details.index' ) -> with ( 'success' , 'description updated successfully' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .