Example #1
0
 /**
  * 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);
 }
Example #2
0
 /**
  * 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);
 }