/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { Material::destroy($id); return redirect()->route('admin.element.material.index')->withFlashSuccess(trans("element_backend.element_material_deleting")); }