public function delete($id) { $article = Vendor::find_by_id($id); if ($article->delete()) { return true; } }