You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After installation, I added the traits in one of the models and when I try to update an entry, it returns the error:
Column not found: 1054 Unknown column 'auditEvents' in 'field list'
(Connection: mysql, SQL: update `products` set `auditEvents` = ?, `products`.`updated_at` = 2024-04-17 10:53:00 where `id` = 2123)
Indeed, I don't have that column on the products table, but it doesn't say in the documentation that I should update all the tables to add new columns to them.
classProductextendsModelimplementsProductContract, Auditable {
use \OwenIt\Auditing\Auditable;
.....
}
Later edit:
I added auditEvents inside my model and now I didn't receive any error but the audits table it's still empty.
public$auditEvents = [
'created',
'updated'
];
The text was updated successfully, but these errors were encountered:
Actual Behaviour
After installation, I added the traits in one of the models and when I try to update an entry, it returns the error:
Indeed, I don't have that column on the products table, but it doesn't say in the documentation that I should update all the tables to add new columns to them.
Later edit:
I added auditEvents inside my model and now I didn't receive any error but the audits table it's still empty.
The text was updated successfully, but these errors were encountered: