In Laravel 6, after deleting the query parameters in the URL, the request continues
1. URL:https://object.local/?oseid=2052A62hlvOV6hlqej5yS2MwoYpUxXTtMQQb, when a certain condition is met, you want to delete the query parameter: oseid and make the URL change to:https://object.local/. Don’t want to use 302 jump implementation.
2. The specific implementation is as follows
var_dump($request->query('oseid'));
$request->query->remove('oseid');
var_dump($request->query('oseid'));
exit;
3. The printing results are as follows, in line with expectations. as shown in Figure 1
string(36) "2052A62hlvOV6hlqej5yS2MwoYpUxXTtMQQb" NULL
