I would like to know whether or not is possible to perform a query including a comment so that, when auditing, in my SQL server log I see something like:
/*This is for getting John's id*/
SELECT id FROM users WHERE name = 'John';
I know how to query users (in this case) by using the model and something like
User::where(name, 'John');
But, is it possible to send a comment in the same query or before? I have investigated and read the Laravel documentation but I can't find anything similar. The only way I can think of is creating a new query that sends only the comment, but I don't think that's the best way and even if it'll work.
Thanks in advance.