Request Path & Method: Retrieving The Request Path

Retrieving The Request Path

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.

Related concepts

Request Path & Method: Retrieving The Request Path — Structure map

Clickable & Draggable!

Request Path & Method: Retrieving The Request Path — Related pages: