Hi
When the system executes a query I want to parse the query and modify it. I want to create a BeforeExecuteQuery method or event.
An example:
The users => ID, Name, Password table
PHP Code:
$users = new \ App\Models\UserModel();
$res = $ users->findAll ();
// select ID, Name, Password from users
I want the Password field to always be removed from query
For now it's catching the query like this, but I can't change it
Events::on('DBQuery', 'My_parser_query');