protected function getTemplateSourceByPath($templatePath) { // find the file location, so we can get the file contents $fileLocation = $this->View->make($templatePath)->getPath(); return \File::get($fileLocation); }