/** * Page History gets all versions of a page * @param $pageId */ public static function history($pageId) { return Content::where("page_id", "=", $pageId)->orderBy("updated_at", "desc")->get(); }