Difference between $data and $this->data in CreateResource
I want to know how the data is passed for the $data for functions in CreateResource.php.
I want to pass some data from beforeCreate() to handleRecordCreation().
If I use the $data parameter, it doesn't get passed. But if I use $this->data, I can pass it from beforeCreate() to handleRecordCreation().
Is there a better way to do this ?
0 Replies