/** * Get file object to the page. * * @return MarkdownFile|null */ public function file() { if ($this->name) { return MarkdownFile::instance($this->filePath()); } return null; }
/** * Get file object to the page. * * @return MarkdownFile|null */ public function file() { if ($this->name) { // TODO: use CompiledMarkdownFile after fixing issues in it. return MarkdownFile::instance($this->filePath()); } return null; }