Laravel mendapatkan rute sebelumnya tanpa domain
parse_url(url()->previous(), PHP_URL_PATH);
Fahim Foysal
parse_url(url()->previous(), PHP_URL_PATH);