I have a Request in laravel where I pass a json object. The json is the following: { "firstname": "michael" }
.
I am writing a dynamic search function and I want to store the data as 2 different values the "firstname" and the "michael". How can I do that in php ?