A redirect is a kind of response; it’s part of a request-response cycle in Laravel. Therefore, Laravel has designed it as a RedirectResponse instance or object that you can use through the global helper function redirect() . It comes from Illuminate\Http\RedirectResponse. You need it for many reasons. One of them is to validate a user’s data or input. If the user input is invalid, it is a responsibility of a well-designed application to send the user a message and return to the original state.
If you want to redirect to the previous location, another good method is the back() global ...