コード例 #1
0
ファイル: _ide_helper.php プロジェクト: satriashp/tour
 /**
  * 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);
 }
コード例 #2
0
ファイル: FileEventLogger.php プロジェクト: rleger/TheseEcho
 /**
  * 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);
 }