Assuming all this data is in the users table, how can I do this?
My question is as follows:
1- How to get all query strings.
2- How to apply in eloquent.
Because the number of query strings is unclear, I don't know what to do
@johnDoe220 I specify that you can't have an unlimited number of query strings, there is only one unique query string, but the query string can contain an unlimited number of parameters.
What do you mean by saying "unspecified number" ? You mean that you don't know in advance the number of parameters ?
I don't understand why you are saying that parse_url() is not a solution.
parse_url allow you to parse a URL and separate the domain part from the query string part.
Then you have to separate all parameters inside the query string. You know that each parameter and its value are separated by &. You can split the string using this separator. And you will obtain an array with all parameters, no matter the number of them.