• 38
      vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php
      Illuminate\Foundation\Bootstrap\HandleExceptions
      :187
  1. 1 unknown frame
    • 1
      index.php
      :51
Illuminate\Foundation\Bootstrap\HandleExceptions::handleError
vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:187

172

173

174

175

176

177

178

179

180

181

182

183

184

185

186

187

188

189

190

191

192

193

194

195

196

197

198

199

200

201

202

public function hash($path)

{

return md5_file($path);

}

 

/**

* Write the contents of a file.

*

* @param string $path

* @param string $contents

* @param bool $lock

* @return int|bool

*/

public function put($path, $contents, $lock = false)

{

return file_put_contents($path, $contents, $lock ? LOCK_EX : 0);

}

 

/**

* Write the contents of a file, replacing it atomically if it already exists.

*

* @param string $path

* @param string $content

* @return void

*/

public function replace($path, $content)

{

// If the path already exists and is a symlink, get the real path...

clearstatcache(true, $path);

 

$path = realpath($path) ?: $path;