1function confirmDelete(id){
2 let url = "{{ route('getDeleteRequest', ':id') }}";
3 url = url.replace(':id', id);
4 document.location.href=url;
5}
6
1Route::get('user/{id}/profile', function ($id) {
2 //
3})->name('profile');
4
5$url = route('profile', ['id' => 1, 'photos' => 'yes']);
6
7// /user/1/profile?photos=yes