How to pass data through a redirect to a view in laravel
How can I pass data from a controller after it performs certain action to a view through a redirect() if I have a get route for it? The logic of the app is to redirect with an user_id to a view where the user will select its username after successfully verified its email. public function confirm($confirmationCode){ if(!$confirmationCode){ dd('No se encontró ningún código de verificación en la URL'); } $user = User::where('confirmation_code', $confirmationCode)->first(); if(!$user){ dd('Lo sentimos. Este código de confirmación ya ha sido usado.'); } $user->confirmed = 1; $user->confirmation