javascript redirect laravel route code example Example: javascript redirect laravel route window.location.href = "{{ route('show-all-prescription')}}";