Why pathInfo shows null if is not null?

Advertisements The dd($request) shows a pathInfo #pathInfo: "/nova-api/post-tags/20/update-fields". And I want to get that value, more specifically I want to check if "post-tags" is in the url. However dd($request->pathInfo); shows: null But its not null as can be seen below: Laravel\Nova\Http\Requests\NovaRequest {#1703 #container: Illuminate\Foundation\Application {#2 #basePath: "/var/www/src" #hasBeenBootstrapped: true #booted: true …. "request" => Illuminate\Http\Request… Read More Why pathInfo shows null if is not null?