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
<?phpnamespaceApp\Models;
useApp\Enum\RoleEnum;
useApp\Observers\UserObserver;
useApp\Scopes\UserScope;
useIlluminate\Database\Eloquent\Attributes\ObservedBy;
useIlluminate\Database\Eloquent\Factories\HasFactory;
useIlluminate\Database\Eloquent\Relations\BelongsToMany;
useIlluminate\Database\Eloquent\SoftDeletes;
useIlluminate\Foundation\Auth\UserasAuthenticatable;
useIlluminate\Notifications\Notifiable;
useLaravel\Sanctum\HasApiTokens;
useSpatie\Permission\Traits\HasRoles;
useVenturecraft\Revisionable\RevisionableTrait;
#[ObservedBy([UserObserver::class])]
class User extends Authenticatable
{
use HasApiTokens;
use HasFactory;
use HasRoles;
use Notifiable;
use SoftDeletes;
use RevisionableTrait;
Error I get from RevisionableTrait when trying to update anything on any user:
Relevant part of the user model:
Error I get from RevisionableTrait when trying to update anything on any user:
Somehow the event function is broken. I haven't dug too deep into the code, but I don't really have any time to do so.
The text was updated successfully, but these errors were encountered: