1 month ago

Overwrite magic _get method for a custom Request class

Posted 1 month ago by spacedog4

I have a custom request class PersonRequest where I use for an exporting project where I manipulate the original request and create new ones, I need to overwrite the default magic get method for Request

I can call $request->get($key) and I already overwrited that method in my PersonRequest, but:

How do I overwrite $request->key?

Please sign in or create an account to participate in this conversation.