-
Notifications
You must be signed in to change notification settings - Fork 398
1366 Incorrect integer value: 'did_providers' for column 'auditable_id' #1020
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Did you change the field on migration??
Read #992 you should have something like $table->string('auditable_type');
$table->string('auditable_id'); |
Nope. But i'm already using it for other models, they have int id's |
Check that, it shouldn't work for some models and not for others. |
Well, have to make an experiment. Cos i can't lose what's already audited and can't let other models stop working |
Maybe laravel-auditing/src/Models/Audit.php Lines 34 to 38 in f92602d
|
PHP Version
8.4
Laravel Version
12.10.2
Package Version
14.0.0
Description
Have string id, added everything needed to the model, but get error on save
Steps To Reproduce
public $incrementing = false;
protected $primaryKey = 'id';
protected $keyType = 'string';
protected function casts(): array
{
return [
'id' => 'string',
'auditable_id' => 'string'
];
}
Possible Solutions
No response
The text was updated successfully, but these errors were encountered: