app/Http/Controllers/M_templatesController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\M_templates  $template
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy(M_templates $m_template)
    {
        $m_template->delete();
        return redirect()->route('m_templates.index')
                        ->with('success','Template deleted successfully');
    }
public function destroy ( M_templates $ m_template ) { $ m_template -> delete ( ) ; return redirect ( ) -> route ( 'm_templates.index' ) -> with ( 'success' , 'Template deleted successfully' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .