public function findPostById($id) { return $this->database->table('posts')->where('id', $id)->first(); }