完善文章管理

This commit is contained in:
2020-04-18 20:43:44 +08:00
parent 84c1a51b86
commit 7238e1770c
9 changed files with 305 additions and 5 deletions

View File

@@ -189,5 +189,15 @@ class Post extends Common
public function delete($id)
{
//
$model_post = ModelPost::find($id);
$model_post->delete();
PostCategory::where('post_id',$id)->delete();
PostTag::where('post_id',$id)->delete();
return json_message();
}
}