static function getPostData($id) { $post = Post::find($id); self::setFormattedDate($post); return $post; }