Access "pathname()" method in view using $this->pathname()
altafhpatel opened this issue · 0 comments
altafhpatel commented
This is not a bug this is the helping material
Paste this piece of code in
klein class folder > src > klein
public function pathname(Request $request = null) { $uri = $this->request->uri(); // Strip the query string from the URI $uri = strstr($uri, '?', true) ?: $uri; return $uri; }