1 min readApr 21, 2020
I was getting the instance of `Illuminate\Routing\UrlGenerator` as the parameter in setPage($url) method. I don't know how but???
Later, I just changed the method argument `$url` to something else like setPage(string $targetUrl) and it worked perfectly.
I still don't know why did I get such instance of `Illuminate\Routing\UrlGenerator`