laravel get old url code example Example: laravel get old url str_replace(url('/'), '', url()->previous())