TA的每日心情 | 衰 2024-6-29 16:44 |
---|
签到天数: 171 天 [LV.7]超级吧粉
|
发表于 2019-1-21 20:43:21
|
显示全部楼层
public function delete(){
//获取id
//请求对象
$request=request();
//获取ID
$id=$request->param("id");
// echo $id;
//执行删除
if(Db::table("role")->where("id","{$id}")->delete()){
$this->success("删除成功","/admin/Rolelist/index");
// echo 1;
}
}public function delete(){
//获取id
//请求对象
$request=request();
//获取ID
$id=$request->param("id");
// echo $id;
//执行删除
if(Db::table("role")->where("id","{$id}")->delete()){
$this->success("删除成功","/admin/Rolelist/index");
// echo 1;
}
} |
|