Laravel tinker not working with error "resource is not a valid stream resource"

60 Views Asked by At

I'm working with Laravel tinker, but if I run some query builder, such as \Illuminate\Support\Facades\DB::table('users')->get();, I always get the following error messages without expected result:

TypeError  fwrite(): supplied resource is not a valid stream resource.

Even when I run simple commands in tinker like echo 2 + 3;, I still have the error message:

> echo 2 + 3;
5
   TypeError  fwrite(): supplied resource is not a valid stream resource.

What can be the cause for this?

0

There are 0 best solutions below