skip to Main Content

How to show encrypted user id in url in laravel?

I created a URL to edit logged in user data here is my route: Route::get('/admin/create/user', [UserController::class, 'createUser'])->name('create.user'); Route::post('/admin/store/user', [UserController::class, 'storeUser'])->name('store.user'); Route::get('/admin/edit/user/{user_id}', [UserController::class, 'editUser'])->name('edit.user'); When a user clicks the edit button they get this URL. http://127.0.0.1:8000/admin/edit/user/160 If that user put 162…

VIEW QUESTION
Back To Top
Search