/** * Prepend to a file. * * @param string $path * @param string $data * @return int * @static */ public static function prepend($path, $data) { return \Illuminate\Filesystem\Filesystem::prepend($path, $data); }
/** * Generic log function. * * @param $contents * @param string $level */ protected function log($contents, $level = 'info') { $contents = $this->buildLogLine($contents, $level); return $this->filesystem->prepend($this->getLogFilePath(), $contents); }