protected function getCurrentRoute(): string
    {
        $request = resolve(HttpRequest::class);
        $method = strtoupper($request->getMethod());
        $path = ltrim($request->path(), '/');
        $host = $request->getHost();

        ! is_null($host) && $host = rtrim($host, '/');

        return "{$method} {$host}/{$path}";
    }
protected function getCurrentRoute(): string
    {
        $request = resolve(HttpRequest::class);
        $method = strtoupper($request->getMethod());
        $path = ltrim($request->path(), '/');
        $host = $request->getHost();

        ! is_null($host) && $host = rtrim($host, '/');

        return "{$method} {$host}/{$path}";
    }
protected function getCurrentRoute ( ) : string { $ request = resolve ( HttpRequest :: class ) ; $ method = strtoupper ( $ request -> getMethod ( ) ) ; $ path = ltrim ( $ request -> path ( ) , '/' ) ; $ host = $ request -> getHost ( ) ; ! is_null ( $ host ) && $ host = rtrim ( $ host , '/' ) ; return "{$method} {$host}/{$path}" ; }
Get current route.

@return string
Get current route .