$baseUri = $_SERVER['REQUEST_URI'];
$baseUri = \Illuminate\Support\Facades\Request::getRequestUri();Package/Library: The package/library used here is PHP itself. The getBaseUri function is included in the PHP core library, and does not require any additional packages or libraries to be installed.