/**
  * Return an index of existing fields.
  *
  * @param FieldTableBuilder $table
  * @return \Symfony\Component\HttpFoundation\Response
  */
 public function index(FieldTableBuilder $table, PageModel $pages)
 {
     $table->setStream($pages->getStream());
     return $table->render();
 }
 /**
  * Find a page by it's path.
  *
  * @param $path
  * @return PageInterface|null
  */
 public function findByPath($path)
 {
     return $this->model->where('path', $path)->first();
 }