JavaScript przekierowuje trasę laravel
window.location.href = "{{ route('show-all-prescription')}}";
Adminson
window.location.href = "{{ route('show-all-prescription')}}";
Route::post('/user/profile', function () {
// Update the user's profile...
return redirect('/dashboard')->with('status', 'Profile updated!');
});
path = "{{route('dashboard')}}";
window.location.href = path;