Extending the Filesystem class in Laravel 5

Asked

Viewed 80 times

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.

  • I actually found that the problem was with the operating system, changed my Session driver to cookie, and solved.

  • 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

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.