protected function copyAndSaveTemplate($type, $filepath) { $target = $this->viewPathForType($type) . basename($filepath); File::copy($filepath, $target); }