public function destroy($id) { Good::destroy($id); Good_attr::where('good_id', $id)->delete(); return back()->with('info', '删除分类成功'); }