Laravel mendapatkan referer tanpa host

parse_url(url()->previous(), PHP_URL_PATH)
Enchanting Elephant