The is method allows you to verify that the incoming request path matches a given pattern.
$uri = $request->path();
If ($request->is('admin/*')) { // }
The path method returns the request's path information.
Clickable & Draggable!