Laravel-auditing: ype error: Argument 1 passed to OwenIt\Auditing\AuditableObserver::updated() must be an instance of OwenIt\Auditing\Contracts\Auditable, instance of App\Model given

Created on 15 Mar 2017  路  1Comment  路  Source: owen-it/laravel-auditing

Whenever I try to create / edit or delete an Model of my Record I get:

Type error: Argument 1 passed to OwenIt\Auditing\AuditableObserver::updated() must be an instance of OwenIt\Auditing\Contracts\Auditable, instance of App\<MyModelName> given.

While I am at it. Do I need to implement

use OwenIt\Auditing\Auditable;
use OwenIt\Auditing\Contracts\Auditable as AuditableContract;

.....

use Auditable;

in my User Model or in the Model I want to audit?

Thank you in advance?

Most helpful comment

Sorry, my bad. Forgot to add implements AuditableContract.

>All comments

Sorry, my bad. Forgot to add implements AuditableContract.

Was this page helpful?
0 / 5 - 0 ratings