0
I’m having some problems with the Filesystem class. To solve my problem, I want to change the put() function of this:
public function put($path, $contents, $lock = false)
{
return file_put_contents($path, $contents, $lock ? LOCK_EX : 0);
}
for that reason:
public function put($path, $contents, $lock = false)
{
return file_put_contents($path, $contents);
}
What’s the best way to do that?
Welcome to Stackoverflow. In the original question it was not clear which part of your code caused the problem. Probably the problem is in your call, not in the Laravel method. To do this create a new question or edit your original.
– gmsantos
I actually found that the problem was with the operating system, changed my Session driver to cookie, and solved.
– IanRodrigues
Post the solution as an answer and include how to reproduce the error in your question. The idea behind stackoverflow is that if someone has the same problem as you, they can find the solution easily
– gmsantos