Hashed user password in error log, can it be removed?
So I tried to register a user, failed since it didn't have access to the .sqlite file (woops) But it then posted the failed sql query which does include the hashed password for the user, I don't really like passwords in the logs.
Is there a way to filter this out in Laravel natively?
I checked the source code and my implementation will not work. For some reason the $bindings property doesn't contain a field-value array. It only contains the bound values :/
I came up with a solution that utilises the reflection API to modify the thrown exception (so it retains the correct line references and such). It redacts all bindings, and not a specific password binding. There's no easy way to identify the bindings.