ErrorException (E_UNKNOWN)

Non-static method Illuminate\Routing\UrlGenerator::to() should not be called statically, assuming $this from incompatible context