I have some validation that I need to perform where I need to make a call to the database. So I’ve created a customer validation method, but in order to make the call, I need some data from the request form that was submitted (or it could be the authenticated session), basically a users id.
In CakePHP2, I would could get that data through $this->data in the model, as it was set once the data was passed to the save() method. Is there something similar for CakePHP4? I know I could set the data manually from the controller, but since the data is already being sent to the save method, is it available some where?